mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Move 'New ...' links to above item tables in project settings (#24720).
Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16183 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
||||||
|
<p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if @project.boards.any? %>
|
<% if @project.boards.any? %>
|
||||||
<div class="table-list boards">
|
<div class="table-list boards">
|
||||||
<div class="table-list-header">
|
<div class="table-list-header">
|
||||||
@@ -27,7 +31,3 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if User.current.allowed_to?(:manage_boards, @project) %>
|
|
||||||
<p><%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %></p>
|
|
||||||
<% end %>
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
<p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p>
|
||||||
|
|
||||||
<% if @project.issue_categories.any? %>
|
<% if @project.issue_categories.any? %>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
@@ -25,5 +27,3 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p>
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
||||||
|
<p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if @project.repositories.any? %>
|
<% if @project.repositories.any? %>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -35,7 +39,3 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
|
||||||
<p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p>
|
|
||||||
<% end %>
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
<p><%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p>
|
||||||
|
|
||||||
<%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %>
|
<%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %>
|
||||||
<fieldset><legend><%= l(:label_filter_plural) %></legend>
|
<fieldset><legend><%= l(:label_filter_plural) %></legend>
|
||||||
<label for='status'><%= l(:field_status) %> :</label>
|
<label for='status'><%= l(:field_status) %> :</label>
|
||||||
@@ -48,5 +50,3 @@
|
|||||||
<%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
|
<%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user