From de98c80605e878f6b3fc562a7f69271b1244d57f Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Sat, 5 Jan 2019 03:54:51 +0000 Subject: [PATCH 1/2] Move the links from the Issues section of the issues list sidebar under actions dropdown --- app/views/issues/_sidebar.html.erb | 13 ------------- app/views/issues/index.html.erb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/views/issues/_sidebar.html.erb b/app/views/issues/_sidebar.html.erb index 38d682b..11174d3 100644 --- a/app/views/issues/_sidebar.html.erb +++ b/app/views/issues/_sidebar.html.erb @@ -1,16 +1,3 @@ -

<%= l(:label_issue_plural) %>

- - - <%= call_hook(:view_issues_sidebar_issues_bottom) %> <%= call_hook(:view_issues_sidebar_planning_bottom) %> diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index d5a77ca..23a27bc 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -2,6 +2,18 @@ <% if User.current.allowed_to?(:add_issues, @project, :global => true) && (@project.nil? || Issue.allowed_target_trackers(@project).any?) %> <%= link_to l(:label_issue_new), _new_project_issue_path(@project), :class => 'icon icon-add new-issue' %> <% end %> + + <%= actions_dropdown do %> + <%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %> + + <% if @project %> + <%= link_to l(:field_summary), project_issues_report_path(@project) %> + <% end %> + + <% if User.current.allowed_to?(:import_issues, @project, :global => true) %> + <%= link_to l(:button_import), new_issues_import_path %> + <% end %> + <% end %>

<%= @query.new_record? ? l(:label_issue_plural) : @query.name %>

-- 2.1.4