mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Change non-js translations to be done in rails
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
.columns.small-12.fat
|
||||
%table
|
||||
%tr
|
||||
%th.order1{"bo-text" => "'transaction' | t"}
|
||||
%th.order2{"bo-text" => "'transaction_date' | t"}
|
||||
%th.order3.show-for-large-up{"bo-text" => "'payment_state' | t"}
|
||||
%th.order4.show-for-large-up{"bo-text" => "'shipping_state' | t"}
|
||||
%th.order5.text-right{"bo-text" => "'value' | t"}
|
||||
%th.order6.text-right.show-for-large-up{"bo-text" => "'outstanding_balance' | t"}
|
||||
%th.order7.text-right{"bo-text" => "'running_balance' | t"}
|
||||
%th.order1= t :transaction
|
||||
%th.order2= t :transaction_date
|
||||
%th.order3.show-for-large-up= t :payment_state
|
||||
%th.order4.show-for-large-up= t :shipping_state
|
||||
%th.order5.text-right= t :value
|
||||
%th.order6.text-right.show-for-large-up= t :outstanding_balance
|
||||
%th.order7.text-right= t :running_balance
|
||||
%tbody.transaction-group{"ng-repeat" => "order in distributor.distributed_orders", "ng-class-odd"=>"'odd'", "ng-class-even"=>"'even'"}
|
||||
%tr.order-row
|
||||
%td.order1
|
||||
@@ -20,7 +20,7 @@
|
||||
%td.order6.text-right.show-for-large-up{"ng-class" => "{'credit' : order.outstanding_balance < 0, 'debit' : order.outstanding_balance > 0, 'paid' : order.outstanding_balance == 0}", "bo-text" => "order.outstanding_balance | localizeCurrency"}
|
||||
%td.order7.text-right{"ng-class" => "{'credit' : order.running_balance < 0, 'debit' : order.running_balance > 0, 'paid' : order.running_balance == 0}", "bo-text" => "order.running_balance | localizeCurrency"}
|
||||
%tr.payment-row{"ng-repeat" => "payment in order.payments"}
|
||||
%td.order1{"bo-text" => "('payment' | t)"}
|
||||
%td.order1= t :payment
|
||||
%td.order2{"bo-text" => "payment.updated_at"}
|
||||
%td.order3.show-for-large-up{"bo-text" => "payment.payment_method"}
|
||||
%td.order4.show-for-large-up
|
||||
|
||||
Reference in New Issue
Block a user