summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 16:44:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 16:44:43 +0000
commita59e33acefa18b513233c0305afff9394c3169d9 (patch)
treecbd943d4790ba5c68be02837c5884a48922262d5 /app
parenta8d945bed01dd396145bf1a4942fbb52d737dca2 (diff)
downloadredmine-a59e33acefa18b513233c0305afff9394c3169d9.tar.gz
redmine-a59e33acefa18b513233c0305afff9394c3169d9.zip
Add links to administration pages in project settings (#30203).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18305 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/settings/_activities.html.erb3
-rw-r--r--app/views/projects/settings/_issues.html.erb6
-rw-r--r--app/views/projects/settings/_members.html.erb3
3 files changed, 12 insertions, 0 deletions
diff --git a/app/views/projects/settings/_activities.html.erb b/app/views/projects/settings/_activities.html.erb
index 1669c1278..dce68df2c 100644
--- a/app/views/projects/settings/_activities.html.erb
+++ b/app/views/projects/settings/_activities.html.erb
@@ -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 %>
diff --git a/app/views/projects/settings/_issues.html.erb b/app/views/projects/settings/_issues.html.erb
index 13c3ebc34..5b2db2937 100644
--- a/app/views/projects/settings/_issues.html.erb
+++ b/app/views/projects/settings/_issues.html.erb
@@ -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),
diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb
index ac8769fc6..6dab1c294 100644
--- a/app/views/projects/settings/_members.html.erb
+++ b/app/views/projects/settings/_members.html.erb
@@ -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? %>