mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
shorten long line of lib/redmine.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20403 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
880a683e8b
commit
5a32dc7ee1
@ -279,31 +279,41 @@ Redmine::MenuManager.map :application_menu do |menu|
|
||||
end
|
||||
|
||||
Redmine::MenuManager.map :admin_menu do |menu|
|
||||
menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural,
|
||||
menu.push :projects, {:controller => 'admin', :action => 'projects'},
|
||||
:caption => :label_project_plural,
|
||||
:html => {:class => 'icon icon-projects'}
|
||||
menu.push :users, {:controller => 'users'}, :caption => :label_user_plural,
|
||||
:html => {:class => 'icon icon-user'}
|
||||
menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural,
|
||||
:html => {:class => 'icon icon-group'}
|
||||
menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions,
|
||||
menu.push :roles, {:controller => 'roles'},
|
||||
:caption => :label_role_and_permissions,
|
||||
:html => {:class => 'icon icon-roles'}
|
||||
menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural,
|
||||
menu.push :trackers, {:controller => 'trackers'},
|
||||
:caption => :label_tracker_plural,
|
||||
:html => {:class => 'icon icon-issue'}
|
||||
menu.push :issue_statuses, {:controller => 'issue_statuses'}, :caption => :label_issue_status_plural,
|
||||
menu.push :issue_statuses, {:controller => 'issue_statuses'},
|
||||
:caption => :label_issue_status_plural,
|
||||
:html => {:class => 'icon icon-issue-edit'}
|
||||
menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow,
|
||||
menu.push :workflows, {:controller => 'workflows', :action => 'edit'},
|
||||
:caption => :label_workflow,
|
||||
:html => {:class => 'icon icon-workflows'}
|
||||
menu.push :custom_fields, {:controller => 'custom_fields'}, :caption => :label_custom_field_plural,
|
||||
menu.push :custom_fields, {:controller => 'custom_fields'},
|
||||
:caption => :label_custom_field_plural,
|
||||
:html => {:class => 'icon icon-custom-fields'}
|
||||
menu.push :enumerations, {:controller => 'enumerations'},
|
||||
:html => {:class => 'icon icon-list'}
|
||||
menu.push :settings, {:controller => 'settings'},
|
||||
:html => {:class => 'icon icon-settings'}
|
||||
menu.push :ldap_authentication, {:controller => 'auth_sources', :action => 'index'},
|
||||
menu.push :ldap_authentication,
|
||||
{:controller => 'auth_sources', :action => 'index'},
|
||||
:html => {:class => 'icon icon-server-authentication'}
|
||||
menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true,
|
||||
menu.push :plugins, {:controller => 'admin', :action => 'plugins'},
|
||||
:last => true,
|
||||
:html => {:class => 'icon icon-plugins'}
|
||||
menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true,
|
||||
menu.push :info, {:controller => 'admin', :action => 'info'},
|
||||
:caption => :label_information_plural,
|
||||
:last => true,
|
||||
:html => {:class => 'icon icon-help'}
|
||||
end
|
||||
|
||||
@ -318,25 +328,33 @@ Redmine::MenuManager.map :project_menu do |menu|
|
||||
:if => Proc.new { |p| Issue.allowed_target_trackers(p).any? },
|
||||
:permission => :add_issues,
|
||||
:parent => :new_object
|
||||
menu.push :new_issue_category, {:controller => 'issue_categories', :action => 'new'},
|
||||
menu.push :new_issue_category,
|
||||
{:controller => 'issue_categories', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_issue_category_new,
|
||||
:parent => :new_object
|
||||
menu.push :new_version, {:controller => 'versions', :action => 'new'}, :param => :project_id, :caption => :label_version_new,
|
||||
menu.push :new_version, {:controller => 'versions', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_version_new,
|
||||
:parent => :new_object
|
||||
menu.push :new_timelog, {:controller => 'timelog', :action => 'new'}, :param => :project_id, :caption => :button_log_time,
|
||||
menu.push :new_timelog, {:controller => 'timelog', :action => 'new'},
|
||||
:param => :project_id, :caption => :button_log_time,
|
||||
:parent => :new_object
|
||||
menu.push :new_news, {:controller => 'news', :action => 'new'}, :param => :project_id, :caption => :label_news_new,
|
||||
menu.push :new_news, {:controller => 'news', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_news_new,
|
||||
:parent => :new_object
|
||||
menu.push :new_document, {:controller => 'documents', :action => 'new'}, :param => :project_id, :caption => :label_document_new,
|
||||
menu.push :new_document, {:controller => 'documents', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_document_new,
|
||||
:parent => :new_object
|
||||
menu.push :new_wiki_page, {:controller => 'wiki', :action => 'new'}, :param => :project_id, :caption => :label_wiki_page_new,
|
||||
menu.push :new_wiki_page, {:controller => 'wiki', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_wiki_page_new,
|
||||
:parent => :new_object
|
||||
menu.push :new_file, {:controller => 'files', :action => 'new'}, :param => :project_id, :caption => :label_attachment_new,
|
||||
menu.push :new_file, {:controller => 'files', :action => 'new'},
|
||||
:param => :project_id, :caption => :label_attachment_new,
|
||||
:parent => :new_object
|
||||
|
||||
menu.push :overview, {:controller => 'projects', :action => 'show'}
|
||||
menu.push :activity, {:controller => 'activities', :action => 'index'}
|
||||
menu.push :roadmap, {:controller => 'versions', :action => 'index'}, :param => :project_id,
|
||||
menu.push :roadmap, {:controller => 'versions', :action => 'index'},
|
||||
:param => :project_id,
|
||||
:if => Proc.new {|p| Setting.display_subprojects_issues? ? p.rolled_up_versions.any? : p.shared_versions.any?}
|
||||
menu.push :issues, {:controller => 'issues', :action => 'index'},
|
||||
:param => :project_id, :caption => :label_issue_plural
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user