Fix some translations. Improve style for menu, fix layout in digitals page. Working version.
This commit is contained in:
1 parent
868fddd7bc
commit
efb07409e9
11 files changed
+75
-69
No files matched your search
@@ -2,11 +2,11 @@ Deface::Override.new(:virtual_path => "spree/shared/_order_details",
|
||||
:name => "add_digital_downloads_to_invoice",
|
||||
:insert_bottom => "td[data-hook='order_item_description']",
|
||||
:text => %q{
|
||||
<% if order.state == 'complete' and item.variant.digital? %>
|
||||
<% if order.payment_state == 'paid' and item.variant.digital? %>
|
||||
<%= content_tag(:p, :class => 'download_links') do %>
|
||||
<% item.digital_links.each do |digital_link| %>
|
||||
<% format = File.extname(digital_link.digital.attachment.path).downcase %>
|
||||
<%= link_to t(:digital_download, :type => t("digital_format#{format}")), digital_url(:host => Spree::Config.get(:site_url), :secret => digital_link.secret), :class => "btn #{format}" %>
|
||||
<%= link_to Spree.t(:digital_download, :type => Spree.t("digital_format#{format}")), digital_url(:host => Spree::Config.get(:site_url), :secret => digital_link.secret), :class => "btn #{format}" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -2,7 +2,7 @@ Deface::Override.new(:virtual_path => "spree/admin/shared/_product_tabs",
|
||||
:name => "add_digital_versions_to_admin_product_tabs",
|
||||
:insert_bottom => "[data-hook='admin_product_tabs'], #admin_product_tabs[data-hook]",
|
||||
:text => " <li<%== ' class=\"active\"' if current == \"Digital Versions\" %>>
|
||||
<%= link_to t(\"digital_versions\"), admin_product_digitals_path(@product) %>
|
||||
<%= link_to_with_icon 'icon-tasks', Spree.t(:digital_versions), admin_product_digitals_path(@product) %>
|
||||
</li>
|
||||
",
|
||||
:disabled => false)
|
||||
@@ -2,6 +2,6 @@ Deface::Override.new(:virtual_path => "spree/admin/shared/_order_tabs",
|
||||
:name => "add_reset_digitals_to_admin_orders",
|
||||
:insert_after => ".sidebar",
|
||||
:text => %q{
|
||||
<%= content_tag(:p, button_link_to(t(:reset_downloads), reset_digitals_admin_order_url(@order)), class: 'clear') if @order.digital? or true %>
|
||||
<%= content_tag(:p, button_link_to(Spree.t(:reset_downloads), reset_digitals_admin_order_url(@order)), class: 'clear') if @order.digital? or true %>
|
||||
},
|
||||
:disabled => false)
|
||||
Reference in new issue
Block a user