diff --git a/app/views/quantities/index.html.erb b/app/views/quantities/index.html.erb index b0043d1..a627436 100644 --- a/app/views/quantities/index.html.erb +++ b/app/views/quantities/index.html.erb @@ -27,8 +27,8 @@ - + @@ -39,10 +39,15 @@ <% next if q.new_record? quantity_class = "quantity" - quantity_class += " project idnt idnt-#{level}" if level > 0 + quantity_class += " project idnt idnt-#{level+1}" quantity_class += " primary" if q.primary %> + - - + <% end %>
<%= l(:field_order) %> <%= l(:field_name) %><%= l(:field_order) %> <%= l(:field_domain) %> <%= l(:field_description) %> <%= l(:field_action) %>
+ <%= link_to '', toggle_quantity_path(q), + {method: :post, class: "icon #{q.primary ? "icon-fav" : "icon-fav-off"}"} %> + <%= q.name %> + <%= if q.left_sibling.present? @@ -76,14 +81,9 @@ end %> <%= q.name %> <%= q.domain %> <%= q.description %> - <%= link_to l(:button_primary), toggle_quantity_path(q), - {method: :post, class: "icon #{q.primary ? "icon-fav" : "icon-fav-off"}"} %> - <%= delete_link quantity_path(q), data: {} %> - <%= delete_link quantity_path(q), data: {} %>