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

[32620] Add project index dropdown

Oliver Günther0bdc6e4ef51b
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index f756245cc1c..b0f3d38b483 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -32,7 +32,7 @@ See docs/COPYRIGHT.rdoc for more details.
<% html_title(t(:label_project_plural)) -%>
-<%= toolbar title: t(:label_project_plural) do %>
+<%= toolbar title: t(:label_project_plural), html: { class: '-with-dropdown' } do %>
<% if User.current.allowed_to?(:add_project, nil, global: true) %>
<li class="toolbar-item">
<%= link_to new_project_path,
@@ -64,6 +64,18 @@ See docs/COPYRIGHT.rdoc for more details.
<%= op_icon("button--icon icon-external-link") %>
<% end %>
</li>
+ <% if current_user.admin? %>
+ <li class="toolbar-item drop-down">
+ <a href="#" aria-haspopup="true" title="<%= t(:label_more) %>" class="button">
+ <%= op_icon('button--icon icon-show-more') %>
+ </a>
+ <ul style="display:none;" class="menu-drop-down-container">
+ <li>
+ <%= link_to t('projects.index.edit_columns'), projects_settings_path, target: '_blank', class: 'icon-context icon-settings3' %>
+ </li>
+ </ul>
+ </li>
+ <% end %>
<% end %>
<%= render partial: 'projects/filters/form', locals: { query: @query } %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c4b70b881fa..1cfc542b9b4 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -229,6 +229,7 @@ en:
completed: "Deletion of project %{name} completed"
completed_text: "The request to delete project '%{name}' has been completed."
index:
+ edit_columns: 'Edit columns'
open_as_gantt: 'Open as Gantt view'
open_as_gantt_title: "Use this button to generate a Gantt view that filters work packages for the projects visible on this page."
open_as_gantt_title_admin: "You can modify the view settings (such as selected work package types) in the administration under project settings."