added order for interpolation

This commit is contained in:
Manuel Wiedenmann 2013-02-09 18:18:07 +07:00
parent 22b3f3a491
commit 2d58054d1c

View file

@ -30,7 +30,7 @@
- if @order.open? - if @order.open?
= link_to t('ui.edit'), edit_order_path(@order), class: 'btn' = link_to t('ui.edit'), edit_order_path(@order), class: 'btn'
= link_to t('.action_end'), finish_order_path(@order), method: :post, class: 'btn btn-success', = link_to t('.action_end'), finish_order_path(@order), method: :post, class: 'btn btn-success',
confirm: t('.confirm_end') confirm: t('.confirm_end', order: @order.name)
- unless @order.closed? - unless @order.closed?
= link_to t('ui.delete'), @order, confirm: t('.confirm_delete'), method: :delete, = link_to t('ui.delete'), @order, confirm: t('.confirm_delete'), method: :delete,
class: 'btn btn-danger' class: 'btn btn-danger'