From: Jean-Philippe Lang Date: Sat, 14 Jan 2017 10:03:26 +0000 (+0000) Subject: Move 'New enumeration' links to above the item tables (#24776). X-Git-Tag: 3.4.0~423 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f3ce996c2c1340b9d037f02fe93bd1901203c93;p=redmine.git 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 --- 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 @@

<%= l(klass::OptionName) %>

<% enumerations = klass.shared %> + +

<%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %>

+ <% if enumerations.any? %> @@ -26,8 +29,6 @@
<% reset_cycle %> <% end %> - -

<%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %>

<% end %> <% html_title(l(:label_enumerations)) -%>