Skip to content

Commit

Permalink
[#2895] Added additional report icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed Aug 14, 2009
1 parent cbb0243 commit d3a9bfb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/system_reports_controller.rb
Expand Up @@ -49,4 +49,4 @@ def check_permissions
end
end

SystemReportsController.add_report(:index, nil, :label => :reports_overview)
SystemReportsController.add_report(:index, nil, :label => :reports_overview, :class => 'icon-overview')
Binary file added assets/images/house.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/user_comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/stylesheets/redmine_reports.css
@@ -1,10 +1,12 @@
.contextual {text-align:right; width: 80%; white-space: normal;}
.icon {margin-left: 5px;}
.icon-overview { background-image: url(../images/house.png); }
.icon-issue { background-image: url(../../../images/ticket.png); }
.icon-issue-complete { background-image: url(../../../images/ticket_checked.png); }
.icon-calendar { background-image: url(../../../images/calendar.png); }
.icon-gantt { background-image: url(../images/chart_organisation.png); }
.icon-redmine-graphs { background-image: url(../images/chart_line.png); }
.icon-activity { background-image: url(../images/user_comment.png); }

#reports-list ul { list-style: none;}
#reports-list ul { padding: 2px 0; }
Expand Down
2 changes: 1 addition & 1 deletion lib/reports/activity_report.rb
Expand Up @@ -13,7 +13,7 @@ def activity_report
# Added the report and configure it's permissions
require 'dispatcher'
Dispatcher.to_prepare do
SystemReportsController.add_report(:activity_report, Reports::ActivityReport, {:action => :activity_report, :label => :reports_activity_report})
SystemReportsController.add_report(:activity_report, Reports::ActivityReport, {:action => :activity_report, :label => :reports_activity_report, :class => 'icon-activity'})

# TODO: A better core API?
Redmine::AccessControl.map {|map|
Expand Down

0 comments on commit d3a9bfb

Please sign in to comment.