summaryrefslogtreecommitdiffstats
path: root/app/views/projects/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 09:58:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 09:58:53 +0000
commitea73cbceeed7ac73f5fb9b3807129fc14e41398f (patch)
tree5051fcbfe71f6c67345bce6c77f8f064f5f8eeb6 /app/views/projects/settings
parentb60596532e322718d465a2073dae0537321d0509 (diff)
downloadredmine-ea73cbceeed7ac73f5fb9b3807129fc14e41398f.tar.gz
redmine-ea73cbceeed7ac73f5fb9b3807129fc14e41398f.zip
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
Diffstat (limited to 'app/views/projects/settings')
-rw-r--r--app/views/projects/settings/_boards.html.erb8
-rw-r--r--app/views/projects/settings/_issue_categories.html.erb4
-rw-r--r--app/views/projects/settings/_repositories.html.erb8
-rw-r--r--app/views/projects/settings/_versions.html.erb4
4 files changed, 12 insertions, 12 deletions
diff --git a/app/views/projects/settings/_boards.html.erb b/app/views/projects/settings/_boards.html.erb
index 16506c889..99479e55a 100644
--- a/app/views/projects/settings/_boards.html.erb
+++ b/app/views/projects/settings/_boards.html.erb
@@ -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? %>
<div class="table-list boards">
<div class="table-list-header">
@@ -27,7 +31,3 @@
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% 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 %>
diff --git a/app/views/projects/settings/_issue_categories.html.erb b/app/views/projects/settings/_issue_categories.html.erb
index 8a04f2555..d1e219ee6 100644
--- a/app/views/projects/settings/_issue_categories.html.erb
+++ b/app/views/projects/settings/_issue_categories.html.erb
@@ -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? %>
<table class="list">
<thead><tr>
@@ -25,5 +27,3 @@
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% 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>
diff --git a/app/views/projects/settings/_repositories.html.erb b/app/views/projects/settings/_repositories.html.erb
index e60164caa..61a1bb24e 100644
--- a/app/views/projects/settings/_repositories.html.erb
+++ b/app/views/projects/settings/_repositories.html.erb
@@ -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? %>
<table class="list">
<thead>
@@ -35,7 +39,3 @@
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% 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 %>
diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb
index 8173433f6..420b64e43 100644
--- a/app/views/projects/settings/_versions.html.erb
+++ b/app/views/projects/settings/_versions.html.erb
@@ -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 %>
<fieldset><legend><%= l(:label_filter_plural) %></legend>
<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 %>
<% end %>
</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>