tap/app/views/orders/_order.html.haml

14 lines
433 B
Text
Raw Normal View History

2015-09-17 14:05:33 +02:00
%tr
%td.order_date
= order.created_at.strftime("%d %b %Y at %H:%M")
%tr
%td
= order.to_sentence
%td
= euro_from_cents(order.price_cents)
2015-10-26 18:57:59 +01:00
%td
- if order.deletable
= button_to "Cancel order (until #{(order.created_at + Rails.application.config.call_api_after).strftime("%H:%M")})", user_order_path(@user, order), method: :delete,
class: "btn btn-danger", data: { remove: order.sec_until_remove }