0001-Move-the-links-from-the-Issues-section-of-the-issues.patch

Marius BALTEANU, 2019-01-05 07:19

Download (2.13 KB)

View differences:

app/views/issues/_sidebar.html.erb
1
<h3><%= l(:label_issue_plural) %></h3>
2

  
3
<ul>
4
<li><%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %></li>
5
<% if @project %>
6
<li><%= link_to l(:field_summary), project_issues_report_path(@project) %></li>
7
<% end %>
8

  
9
<% if User.current.allowed_to?(:import_issues, @project, :global => true) %>
10
<li><%= link_to l(:button_import), new_issues_import_path %></li>
11
<% end %>
12
</ul>
13

  
14 1
<%= call_hook(:view_issues_sidebar_issues_bottom) %>
15 2
<%= call_hook(:view_issues_sidebar_planning_bottom) %>
16 3

  
app/views/issues/index.html.erb
2 2
  <% if User.current.allowed_to?(:add_issues, @project, :global => true) && (@project.nil? || Issue.allowed_target_trackers(@project).any?) %>
3 3
    <%= link_to l(:label_issue_new), _new_project_issue_path(@project), :class => 'icon icon-add new-issue' %>
4 4
  <% end %>
5

  
6
  <%= actions_dropdown do %>
7
    <%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %>
8

  
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 %>
5 17
</div>
6 18

  
7 19
<h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
8
-