Commit 465c8f1d authored by jplang's avatar jplang

Add links to administration pages in project settings (#30203).

Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@18305 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2cdf1df4
......@@ -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 %>
......
......@@ -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),
......
<% 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? %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment