From 237785e82c830d22a5d67477d3bced235f5f68f8 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Sat, 7 Jan 2017 18:04:34 +0100 Subject: [PATCH 1/4] Move 'New enumeration' links to above the item tables. --- app/views/enumerations/index.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git app/views/enumerations/index.html.erb app/views/enumerations/index.html.erb index 5f1d2ea..b832d5c 100644 --- app/views/enumerations/index.html.erb +++ 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)) -%> -- 2.7.4.windows.1