Project

General

Profile

Patch #30203 » add-link-to-administration-pages.diff

Go MAEDA, 2018-12-13 13:31

View differences:

app/views/projects/settings/_activities.html.erb (working copy)
3 3
            :method => :delete,
4 4
            :data => {:confirm => l(:text_are_you_sure)},
5 5
            :class => 'icon icon-del') %>
6
<% if User.current.admin? %>
7
<%= link_to l(:label_administration), enumerations_path, :class => "icon icon-settings" %>
8
<% end %>
6 9
</div>
7 10

  
8 11
<%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
app/views/projects/settings/_issues.html.erb (working copy)
3 3

  
4 4
  <% unless @trackers.empty? %>
5 5
  <fieldset class="box tabular" id="project_trackers"><legend><%= toggle_checkboxes_link('#project_trackers input[type=checkbox]') %><%= l(:label_tracker_plural)%></legend>
6
  <% if User.current.admin? %>
7
    <div class="contextual"><%= link_to l(:label_administration), trackers_path, :class => "icon icon-settings" %></div>
8
  <% end %>
6 9
  <% @trackers.each do |tracker| %>
7 10
    <label class="floating">
8 11
      <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %>
......
15 18

  
16 19
  <% unless @issue_custom_fields.empty? %>
17 20
  <fieldset class="box tabular" id="project_issue_custom_fields"><legend><%= toggle_checkboxes_link('#project_issue_custom_fields input[type=checkbox]:enabled') %><%=l(:label_custom_field_plural)%></legend>
21
  <% if User.current.admin? %>
22
    <div class="contextual"><%= link_to l(:label_administration), custom_fields_path, :class => "icon icon-settings" %></div>
23
  <% end %>
18 24
  <% @issue_custom_fields.each do |custom_field| %>
19 25
    <label class="floating">
20 26
      <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
app/views/projects/settings/_members.html.erb (working copy)
1 1
<% members = @project.memberships.preload(:project).sorted.to_a %>
2 2

  
3
<% if User.current.admin? %>
4
  <div class="contextual"><%= link_to l(:label_administration), users_path, :class => "icon icon-settings" %></div>
5
<% end %>
3 6
<p><%= link_to l(:label_member_new), new_project_membership_path(@project), :remote => true, :class => "icon icon-add" %></p>
4 7

  
5 8
<% if members.any? %>
(4-4/4)