1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2017-01-14 10:03:26 +00:00
parent 780d95889a
commit 7f3ce996c2

View File

@ -4,6 +4,9 @@
<h3><%= l(klass::OptionName) %></h3> <h3><%= l(klass::OptionName) %></h3>
<% enumerations = klass.shared %> <% enumerations = klass.shared %>
<p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
<% if enumerations.any? %> <% if enumerations.any? %>
<table class="list enumerations"><thead> <table class="list enumerations"><thead>
<tr> <tr>
@ -26,8 +29,6 @@
</table> </table>
<% reset_cycle %> <% reset_cycle %>
<% end %> <% end %>
<p><%= link_to l(:label_enumeration_new), new_enumeration_path(:type => klass.name) %></p>
<% end %> <% end %>
<% html_title(l(:label_enumerations)) -%> <% html_title(l(:label_enumerations)) -%>