Sha256: 7ffce84f2c57fbdf69cb0cd50266458c82637f7d520335279c9cfe1e4184b58f

Contents?: true

Size: 1.63 KB

Versions: 6

Compression:

Stored size: 1.63 KB

Contents

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

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tienda-2.1.3 app/views/tienda/orders/_status_bar.html.haml
tienda-2.1.2 app/views/tienda/orders/_status_bar.html.haml
tienda-2.1.1 app/views/tienda/orders/_status_bar.html.haml
tienda-2.1.0 app/views/tienda/orders/_status_bar.html.haml
tienda-2.0.2 app/views/tienda/orders/_status_bar.html.haml
tienda-2.0.1 app/views/tienda/orders/_status_bar.html.haml