Sha256: f6b859c6fafe4d476140eb804408f3c54ab19d319241c79fa9d33e1304091293

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 Bytes

Contents

Deface::Override.new(
  virtual_path:  'spree/admin/shared/_product_tabs',
  name:          'product_tabs_translation',
  insert_bottom: "[data-hook='admin_product_tabs']",
  text:          <<-HTML
                  <li>
                    <%= link_to_with_icon 'translate', Spree.t(:'i18n.translations'), spree.admin_translations_url('products', @product.slug), class: "\#\{'active' if current == 'Translations'\} nav-link" %>
                  </li>
                HTML
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_mobility-1.4.0 app/overrides/spree/admin/shared/_product_tabs/add_translations.rb
spree_mobility-1.3.0 app/overrides/spree/admin/shared/_product_tabs/add_translations.rb
spree_mobility-1.2.0 app/overrides/spree/admin/shared/_product_tabs/add_translations.rb
spree_mobility-1.1.0 app/overrides/spree/admin/shared/_product_tabs/add_translations.rb
spree_mobility-1.0.0 app/overrides/spree/admin/shared/_product_tabs/add_translations.rb