summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 10:03:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-14 10:03:26 +0000
commit7f3ce996c2c1340b9d037f02fe93bd1901203c93 (patch)
tree69018fcaad32762571d54fe586fe2ae59c2525a7
parent780d95889a4056e7202541c4e9eb7f4c4c8b2c6f (diff)
downloadredmine-7f3ce996c2c1340b9d037f02fe93bd1901203c93.tar.gz
redmine-7f3ce996c2c1340b9d037f02fe93bd1901203c93.zip
Move 'New enumeration' links to above the item tables (#24776).
Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@16186 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/enumerations/index.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb
index 5f1d2eafb..b832d5c99 100644
--- a/app/views/enumerations/index.html.erb
+++ b/app/views/enumerations/index.html.erb
@@ -4,6 +4,9 @@
<h3><%= l(klass::OptionName) %></h3>
<% enumerations = klass.shared %>
+
+<p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
+
<% if enumerations.any? %>
<table class="list enumerations"><thead>
<tr>
@@ -26,8 +29,6 @@
</table>
<% reset_cycle %>
<% end %>
-
-<p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
<% end %>
<% html_title(l(:label_enumerations)) -%>