each list.users as |user|
  user.avatar_tag
.display-row
  .display-label=t 'attributes.list.created_at'
  .display-field=time list.created_at
if list.closed_at
  .display-row
    .display-label=t 'attributes.list.closed_at'
    .display-field=time list.closed_at
.display-row
  .display-label=t 'attributes.list.state'
  .display-field=state 'list' list.state
.display-row
  .display-label=t 'models.supplier'
  .display-field= list.supplier.name
if list.isLoaded
  if list.sorted_orders
    .list-orders-container
      each list.sorted_orders as |order|
        = list-order order=order
        /= order.display
        /span.currency= currency order.total
        /span.created_at= time order.created_at format="H:mm"
      if list.showTotal
        .list-orders-total.total
          = t 'total'
          span.currency= currency list.total
  else
    p
      span=t 'active_list.no_orders_explanation'
      br
      if list.table
        = link-to 'table' list.table class="button"
          span=t 'list_products.title'
else
  span.loading.large
