fix some link handling in i18n (using html_safe)

This commit is contained in:
wvengen 2013-03-09 00:48:52 +01:00
parent cb537bc11c
commit 19527f8425
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@
= f.hidden_field :order_id
- 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
%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.input :number

View File

@ -6,7 +6,7 @@
- if @invoice.delivery
%p
%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
%b= t('simple_form.labels.invoice.number') + ':'
= @invoice.number