Project

General

Profile

Feature #22090 » 22090-v2.patch

Go MAEDA, 2019-05-06 11:36

View differences:

app/views/boards/index.html.erb
1
<div class="contextual">
2
  <%= link_to_if_authorized l(:label_settings),
3
              {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'},
4
              :class => 'icon icon-settings' if User.current.allowed_to?(:manage_boards, @project) %>
5
</div>
6

  
1 7
<h2><%= l(:label_board_plural) %></h2>
2 8

  
3 9
<table class="list boards">
app/views/boards/show.html.erb
6 6
            :class => 'icon icon-add',
7 7
            :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.allowed_to?(:add_messages, @board.project) %>
8 8
<%= watcher_link(@board, User.current) %>
9
<%= link_to_if_authorized l(:label_settings),
10
            {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'},
11
            :class => 'icon icon-settings' if User.current.allowed_to?(:manage_boards, @project) %>
12

  
9 13
</div>
10 14

  
11 15
<div id="add-message" style="display:none;">
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
  <%= link_to_if_authorized l(:label_settings),
6
              {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'issues'},
7
              :class => 'icon icon-settings' if User.current.allowed_to?(:manage_categories, @project) %>
5 8
</div>
6 9

  
7 10
<h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
app/views/projects/show.html.erb
9 9
      <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
10 10
    <% end %>
11 11
  <% end %>
12
  <%= link_to_if_authorized l(:label_settings),
13
              {:controller => 'projects', :action => 'settings', :id => @project},
14
              :class => 'icon icon-settings' if User.current.allowed_to?(:edit_project, @project) %>
15

  
12 16
</div>
13 17

  
14 18
<h2><%=l(:label_overview)%></h2>
app/views/repositories/_navigation.html.erb
15 15
            {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
16 16
            :class => 'icon icon-stats' if @repository.supports_all_revisions? %>
17 17

  
18
<%= link_to_if_authorized l(:label_settings),
19
            {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'repositories'},
20
            :class => 'icon icon-settings' if User.current.allowed_to?(:manage_repository, @project) %>
21

  
18 22
<%= form_tag({:action => controller.action_name,
19 23
             :id => @project,
20 24
             :repository_id => @repository.identifier_param,
app/views/timelog/index.html.erb
2 2
<%= link_to l(:button_log_time), 
3 3
            _new_time_entry_path(@project, @query.filtered_issue_id),
4 4
            :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %>
5
<%= link_to_if_authorized l(:label_settings),
6
            {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'activities'},
7
            :class => 'icon icon-settings' if User.current.allowed_to?(:manage_project_activities, @project) %>
5 8
</div>
6 9

  
7 10
<h2><%= @query.new_record? ? l(:label_spent_time) : @query.name %></h2>
app/views/timelog/report.html.erb
2 2
<%= link_to l(:button_log_time),
3 3
            _new_time_entry_path(@project, @issue),
4 4
            :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %>
5
<%= link_to_if_authorized l(:label_settings),
6
            {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'activities'},
7
            :class => 'icon icon-settings' if User.current.allowed_to?(:manage_project_activities, @project) %>
5 8
</div>
6 9

  
7 10
<h2><%= @query.new_record? ? l(:label_spent_time) : @query.name %></h2>
app/views/versions/index.html.erb
1 1
<div class="contextual">
2 2
  <%= link_to(l(:label_version_new), new_project_version_path(@project),
3 3
              :class => 'icon icon-add') if User.current.allowed_to?(:manage_versions, @project) %>
4
  <%= link_to_if_authorized l(:label_settings),
5
              {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'versions'},
6
              :class => 'icon icon-settings' if User.current.allowed_to?(:manage_versions, @project) %>
4 7
</div>
5 8

  
6 9
<h2><%=l(:label_roadmap)%></h2>
(3-3/3)