d-breadcrumbs as |breadcrumb|
  breadcrumb.item active=true
    = t 'models.plural.organization'
.ui.container
  h3.ui.top.attached.header
    if (can 'manage' 'model' 'panda/organization')
      .ui.right.floated.icon.buttons
        /= push-action type='edit' action='editOrganizationContext'
        = push-action type='new' action='newOrganization' description='Add organization'
    = t 'models.plural.organization'
  table.ui.unstackable.bottom.attached.table
    /thead
      tr
        th= t 'attributes.organization.name'
        th.actions
    tbody
      each (sort-by 'name' model) as |organization|
        tr
          td.compact.collapsing
            if organization.logo
              img src=organization.logo_url.small
          td= link-to organization.name 'organization.show' organization
          if (can 'manage' 'model' 'panda/organization')
            td.actions= push-action type='edit' action='editOrganization' model=organization
