fixed icons

- correct icon for my page
- added icon for query menu items
pull/728/head
Christian Ratz 11 years ago
parent d6faf7f8f3
commit d67f1c891b
  1. 2
      lib/redmine.rb
  2. 7
      lib/redmine/menu_manager/menu_helper.rb

@ -232,7 +232,7 @@ Redmine::AccessControl.map do |map|
end end
Redmine::MenuManager.map :top_menu do |menu| Redmine::MenuManager.map :top_menu do |menu|
menu.push :my_page, { :controller => '/my', :action => 'page' }, :html => {:class => 'icon5 icon-user1'}, :if => Proc.new { User.current.logged? } menu.push :my_page, { :controller => '/my', :action => 'page' }, :html => {:class => 'icon5 icon-star2'}, :if => Proc.new { User.current.logged? }
# projects menu will be added by Redmine::MenuManager::TopMenuHelper#render_projects_top_menu_node # projects menu will be added by Redmine::MenuManager::TopMenuHelper#render_projects_top_menu_node
menu.push :administration, { :controller => '/admin', :action => 'projects' }, :if => Proc.new { User.current.admin? }, :last => true menu.push :administration, { :controller => '/admin', :action => 'projects' }, :if => Proc.new { User.current.admin? }, :last => true
menu.push :help, OpenProject::Info.help_url, :last => true, :caption => I18n.t('label_help'), :html => { :accesskey => OpenProject::AccessKeys.key_for(:help), :class => "icon5 icon-help"} menu.push :help, OpenProject::Info.help_url, :last => true, :caption => I18n.t('label_help'), :html => { :accesskey => OpenProject::AccessKeys.key_for(:help), :class => "icon5 icon-help"}

@ -93,7 +93,12 @@ module Redmine::MenuManager::MenuHelper
query_menu_items.each do |query_menu_item| query_menu_items.each do |query_menu_item|
# url = project_work_packages_path(project, query_id: query_menu_item.navigatable_id) does not work because the authorization check fails # url = project_work_packages_path(project, query_id: query_menu_item.navigatable_id) does not work because the authorization check fails
url = { :controller => '/work_packages', :action => 'index', :params => {:query_id => query_menu_item.navigatable_id} } url = { :controller => '/work_packages', :action => 'index', :params => {:query_id => query_menu_item.navigatable_id} }
menu.push query_menu_item.name, url, :param => :project_id, :caption => query_menu_item.title, :parent => :work_packages menu.push query_menu_item.name,
url,
:param => :project_id,
:caption => query_menu_item.title,
:parent => :work_packages
:html => {:class => 'icon2 icon-pin'}
end end
end end
end end

Loading…
Cancel
Save