]> source.dussan.org Git - redmine.git/commitdiff
Add links to administration pages in project settings (#30203).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 20 Jun 2019 16:44:43 +0000 (16:44 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 20 Jun 2019 16:44:43 +0000 (16:44 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18305 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/settings/_activities.html.erb
app/views/projects/settings/_issues.html.erb
app/views/projects/settings/_members.html.erb

index 1669c12780cc332ace5b7c5b94e1f5647afd6a94..dce68df2c633dd04b24488d45f523fd223a5d7d4 100644 (file)
@@ -3,6 +3,9 @@
             :method => :delete,
             :data => {:confirm => l(:text_are_you_sure)},
             :class => 'icon icon-del') %>
+<% if User.current.admin? %>
+<%= link_to l(:label_administration), enumerations_path, :class => "icon icon-settings" %>
+<% end %>
 </div>
 
 <%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
index 13c3ebc348effc7368857059f36cecb1903e6b08..5b2db29379f0b75f786916b8b050a75cdf9e8f12 100644 (file)
@@ -3,6 +3,9 @@
 
   <% unless @trackers.empty? %>
   <fieldset class="box tabular" id="project_trackers"><legend><%= toggle_checkboxes_link('#project_trackers input[type=checkbox]') %><%= l(:label_tracker_plural)%></legend>
+  <% if User.current.admin? %>
+    <div class="contextual"><%= link_to l(:label_administration), trackers_path, :class => "icon icon-settings" %></div>
+  <% end %>
   <% @trackers.each do |tracker| %>
     <label class="floating">
       <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %>
@@ -15,6 +18,9 @@
 
   <% unless @issue_custom_fields.empty? %>
   <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>
+  <% if User.current.admin? %>
+    <div class="contextual"><%= link_to l(:label_administration), custom_fields_path, :class => "icon icon-settings" %></div>
+  <% end %>
   <% @issue_custom_fields.each do |custom_field| %>
     <label class="floating">
       <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
index ac8769fc680af383bd73178acc5ecccc0e0dd795..6dab1c294046f7c09772b0abf4b0f8a58753bc6a 100644 (file)
@@ -1,5 +1,8 @@
 <% members = @project.memberships.preload(:project).sorted.to_a %>
 
+<% if User.current.admin? %>
+  <div class="contextual"><%= link_to l(:label_administration), users_path, :class => "icon icon-settings" %></div>
+<% end %>
 <p><%= link_to l(:label_member_new), new_project_membership_path(@project), :remote => true, :class => "icon icon-add" %></p>
 
 <% if members.any? %>