app/views/spree/admin/variants/index.html.erb in spree_backend-3.0.1 vs app/views/spree/admin/variants/index.html.erb in spree_backend-3.0.2
- old
+ new
@@ -1,6 +1,6 @@
-<%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Variants'} %>
+<%= render partial: 'spree/admin/shared/product_tabs', locals: {current: :variants} %>
<%# Place for new variant form %>
<div id="new_variant" data-hook></div>
<% if @variants.any? %>
@@ -23,12 +23,12 @@
</td>
<td><%= variant.options_text %></td>
<td><%= variant.display_price.to_html %></td>
<td><%= variant.sku %></td>
<td class="actions actions-2 text-right">
- <%= link_to_edit(variant, :no_text => true) if can?(:edit, variant) && !variant.deleted? %>
- <%= link_to_delete(variant, :no_text => true) if can?(:destroy, variant) && !variant.deleted? %>
+ <%= link_to_edit(variant, no_text: true) if can?(:edit, variant) && !variant.deleted? %>
+ <%= link_to_delete(variant, no_text: true) if can?(:destroy, variant) && !variant.deleted? %>
</td>
</tr>
<% end %>
<% unless @product.has_variants? %>
<tr>
@@ -53,9 +53,9 @@
<%= link_to Spree.t(:option_values), spree.admin_option_types_url %>
</p>
<% end %>
<% else %>
<% content_for :page_actions do %>
- <%= button_link_to(Spree.t(:new_variant), spree.new_admin_product_variant_url(@product), { :remote => :true, :icon => 'add', :'data-update' => 'new_variant', :class => 'btn-success', id: 'new_var_link' }) if can? :create, Spree::Variant %>
- <%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, :deleted => @deleted.blank? ? "on" : "off"), { :class => 'btn-default', :icon => 'filter' } %>
+ <%= button_link_to(Spree.t(:new_variant), spree.new_admin_product_variant_url(@product), { remote: :true, icon: 'add', :'data-update' => 'new_variant', class: 'btn-success', id: 'new_var_link' }) if can? :create, Spree::Variant %>
+ <%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), { class: 'btn-default', icon: 'filter' } %>
<% end %>
<% end %>