mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-09 09:01:31 +00:00
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
This commit is contained in:
parent
a8d945bed0
commit
a59e33acef
@ -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),
|
||||
|
||||
@ -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? %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user