fix some link handling in i18n (using html_safe)
This commit is contained in:
parent
cb537bc11c
commit
19527f8425
2 changed files with 3 additions and 3 deletions
|
@ -3,9 +3,9 @@
|
||||||
= f.hidden_field :order_id
|
= f.hidden_field :order_id
|
||||||
|
|
||||||
- if @invoice.delivery
|
- if @invoice.delivery
|
||||||
%p= t '.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])
|
%p= t('.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])).html_safe
|
||||||
- if @invoice.order
|
- if @invoice.order
|
||||||
%p= t '.linked', what_link: link_to(t('.order'), @invoice.order)
|
%p= t('.linked', what_link: link_to(t('.order'), @invoice.order)).html_safe
|
||||||
|
|
||||||
= f.association :supplier, hint: false
|
= f.association :supplier, hint: false
|
||||||
= f.input :number
|
= f.input :number
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
- if @invoice.delivery
|
- if @invoice.delivery
|
||||||
%p
|
%p
|
||||||
%b= t('simple_form.labels.invoice.delivery') + ':'
|
%b= t('simple_form.labels.invoice.delivery') + ':'
|
||||||
= t '.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])
|
= t('.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])).html_safe
|
||||||
%p
|
%p
|
||||||
%b= t('simple_form.labels.invoice.number') + ':'
|
%b= t('simple_form.labels.invoice.number') + ':'
|
||||||
= @invoice.number
|
= @invoice.number
|
||||||
|
|
Loading…
Reference in a new issue