Sha256: 98d2b2072306b61ccd34416c3d58f2151e969ad2963a6a36ed8e227c81e5e072

Contents?: true

Size: 1.5 KB

Versions: 9

Compression:

Stored size: 1.5 KB

Contents

.status-bar
  %ul
    - if @order.received?
      %li.received
        %h4= t('kkt_shoppe.orders.order_received')
        %p
          = t('kkt_shoppe.orders.status_bar.on_date', on: @order.received_at.to_s(:short))
          = t('kkt_shoppe.orders.status_bar.from_ip', ip: @order.ip_address)

    - if @order.accepted?
      %li.accepted
        %h4= t('kkt_shoppe.orders.order_accepted')
        %p
          = t('kkt_shoppe.orders.status_bar.on_date', on: @order.accepted_at.to_s(:short))
          - if @order.accepter
            = t('kkt_shoppe.orders.status_bar.by_user', user: @order.accepter.short_name)

    - elsif @order.rejected?
      %li.rejected
        %h4= t('kkt_shoppe.orders.order_rejected')
        %p
          = t('kkt_shoppe.orders.status_bar.on_date', on: @order.rejected_at.to_s(:short))
          - if @order.rejecter
            = t('kkt_shoppe.orders.status_bar.by_user', user: @order.rejecter.short_name)

    - if @order.shipped?
      %li.shipped
        %h4= t('kkt_shoppe.orders.order_shipped')
        %p
          = t('kkt_shoppe.orders.status_bar.on_date', on: @order.shipped_at.to_s(:short))
          = t('kkt_shoppe.orders.status_bar.by_user', user: @order.shipper.try(:short_name) || 'Unknown')
        - if @order.delivery_service && @order.courier_tracking_url
          %p= link_to t('kkt_shoppe.orders.status_bar.tracking_url'), @order.courier_tracking_url
        - else
          %p= t('kkt_shoppe.orders.status_bar.consignment_no_html', consignment_number: @order.consignment_number)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/orders/_status_bar.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/orders/_status_bar.html.haml