d-breadcrumbs as |breadcrumb|
  breadcrumb.item active=true
    = t 'models.plural.project'

.ui.container
  h3.ui.top.attached.header
    if (can 'manage' 'model' 'panda/project')
      .ui.right.floated.icon.buttons
        = push-action type='edit' action='editProjectsContext'
        = push-action type='new' action='newProject' description='Add project'
    = t 'models.plural.project'
  table.ui.unstackable.bottom.attached.table
    /thead
      tr
        th= t 'attributes.project.name'
        th.actions
    tbody
      each (sort-by 'name' model) as |project|
        tr
          td= link-to project.name 'project.show' project
          td= project.workflow_instance_type.name
          /td.actions= push-action type='edit' action='editProject' model=project

/button.ui.secondary.button{action (route-action 'new_project_from_contract')}= t 'project.modals.new_project_from_contract.title'
