Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

place members menu right before project settings

ulferts0fbd3faeda5d
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index 878c7c69e51..5187ee025fe 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -372,6 +372,7 @@ Redmine::MenuManager.map :project_menu do |menu|
{ controller: '/members', action: 'index' },
param: :project_id,
caption: :label_member_plural,
+ before: :settings,
icon: 'icon2 icon-group'
menu.push :settings,
diff --git a/modules/documents/lib/open_project/documents/engine.rb b/modules/documents/lib/open_project/documents/engine.rb
index ac0886a810c..a1632cfce43 100644
--- a/modules/documents/lib/open_project/documents/engine.rb
+++ b/modules/documents/lib/open_project/documents/engine.rb
@@ -36,11 +36,13 @@ module OpenProject::Documents
author_url: "http://www.openproject.com",
bundled: true do
- menu :project_menu, :documents,
- { controller: '/documents', action: 'index' },
- param: :project_id,
- caption: :label_document_plural,
- icon: 'icon2 icon-notes'
+ menu :project_menu,
+ :documents,
+ { controller: '/documents', action: 'index' },
+ param: :project_id,
+ caption: :label_document_plural,
+ before: :members,
+ icon: 'icon2 icon-notes'
project_module :documents do |_map|
permission :view_documents, documents: [:index, :show, :download]
diff --git a/modules/meeting/lib/open_project/meeting/engine.rb b/modules/meeting/lib/open_project/meeting/engine.rb
index b3463626f42..80a34503564 100644
--- a/modules/meeting/lib/open_project/meeting/engine.rb
+++ b/modules/meeting/lib/open_project/meeting/engine.rb
@@ -55,10 +55,12 @@ module OpenProject::Meeting
search.register :meetings
end
- menu :project_menu, :meetings, { controller: '/meetings', action: 'index' },
+ menu :project_menu,
+ :meetings, { controller: '/meetings', action: 'index' },
caption: :project_module_meetings,
param: :project_id,
after: :wiki,
+ before: :members,
icon: 'icon2 icon-meetings'
ActiveSupport::Inflector.inflections do |inflect|