Application layout refactored.
The project menu is now the main menu. git-svn-id: http://redmine.rubyforge.org/svn/trunk@747 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -84,6 +84,7 @@ class ProjectsController < ApplicationController
|
||||
@trackers = Tracker.find(:all, :order => 'position')
|
||||
@open_issues_by_tracker = Issue.count(:group => :tracker, :joins => "INNER JOIN #{IssueStatus.table_name} ON #{IssueStatus.table_name}.id = #{Issue.table_name}.status_id", :conditions => ["project_id=? and #{IssueStatus.table_name}.is_closed=?", @project.id, false])
|
||||
@total_issues_by_tracker = Issue.count(:group => :tracker, :conditions => ["project_id=?", @project.id])
|
||||
@total_hours = @project.time_entries.sum(:hours)
|
||||
@key = User.current.rss_key
|
||||
end
|
||||
|
||||
@@ -254,6 +255,7 @@ class ProjectsController < ApplicationController
|
||||
:limit => @issue_pages.items_per_page,
|
||||
:offset => @issue_pages.current.offset
|
||||
end
|
||||
|
||||
render :layout => false if request.xhr?
|
||||
end
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ class ReportsController < ApplicationController
|
||||
issues_by_category
|
||||
issues_by_author
|
||||
issues_by_subproject
|
||||
@total_hours = @project.time_entries.sum(:hours)
|
||||
|
||||
render :template => "reports/issue_report"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -88,6 +88,7 @@ class RolesController < ApplicationController
|
||||
}
|
||||
if @role.save
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'workflow', :role_id => @role, :tracker_id => @tracker
|
||||
end
|
||||
end
|
||||
@roles = Role.find(:all, :order => 'builtin, position')
|
||||
|
||||
Reference in New Issue
Block a user