%h2 Order
%hr

%a.btn.btn-default.pull-right{'data-role' => 'print-button', :class => 'print-button', :onClick => "window.print(); false;"} Print

= render @order

%hr
= link_to 'Back', :back, :class => 'btn btn-primary'

- if @order.purchased?
  %h2 Receipt
- else
  %h2 Order
%hr

%a.btn.btn-default.pull-right{'data-role' => 'print-button', :class => 'print-button', :onClick => "window.print(); false;"} Print

= render @order

%hr
= link_to 'Back', :back, :class => 'btn btn-primary'

Use the header ‘receipt’ instead of ‘Order’ when purchased
Use the header ‘receipt’ instead of ‘Order’ when purchased
