Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e348c5c511
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (17 sloc) 0.892 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
class RussianAdaptationHooks < Spree::ThemeSupport::HookListener
  
  insert_after :inside_head do
    %(<link type="text/css" rel="stylesheet" media="screen" href="/stylesheets/screen.ext.css">)
  end
  
  insert_after :admin_inside_head do
    %(<%= javascript_include_tag :ckeditor %>) if defined?(Ckeditor)
  end

  insert_before :admin_order_show_buttons do
    %( <%= button_link_to(I18n::t("waybill"), waybill_admin_order_url(@order, :format => :pdf)) <<
button_link_to(I18n::t("cash_memo"), cash_memo_admin_order_url(@order, :format => :pdf)) %>)
  end

  insert_before :admin_order_edit_buttons do
    %( <%= button_link_to(I18n::t("waybill"), waybill_admin_order_url(@order, :format => :pdf)) <<
button_link_to(I18n::t("cash_memo"), cash_memo_admin_order_url(@order, :format => :pdf)) %>)
  end

  insert_after :order_details_total, 'orders/payment_links'
end
Something went wrong with that request. Please try again.