Project

General

Profile

Patch #30294 » fix_actions_dropdown.patch

Marius BĂLTEANU, 2019-06-20 22:39

View differences:

app/views/issues/index.html.erb
5 5
  <%= link_to_if_authorized l(:label_settings),
6 6
              {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'issues'},
7 7
              :class => 'icon icon-settings' if User.current.allowed_to?(:manage_categories, @project) %>
8
  <%= actions_dropdown do %>
9
    <% if @project %>
10
      <%= link_to l(:field_summary), project_issues_report_path(@project) %>
11
    <% end %>
12

  
13
    <% if User.current.allowed_to?(:import_issues, @project, :global => true) %>
14
      <%= link_to l(:button_import), new_issues_import_path %>
15
    <% end %>
16
  <% end %>
8 17
</div>
9 18

  
10 19
<h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
......
52 61
    <%= link_to_function l(:button_cancel), "hideModal(this);" %>
53 62
  </p>
54 63
  <% end %>
55

  
56
  <%= actions_dropdown do %>
57
    <% if @project %>
58
      <%= link_to l(:field_summary), project_issues_report_path(@project) %>
59
    <% end %>
60

  
61
    <% if User.current.allowed_to?(:import_issues, @project, :global => true) %>
62
      <%= link_to l(:button_import), new_issues_import_path %>
63
    <% end %>
64
  <% end %>
65 64
</div>
66 65

  
67 66
<% end %>
(4-4/5)