d-breadcrumbs as |breadcrumb|
  breadcrumb.item
    = link-to 'project.index': span= t 'models.plural.project'
  breadcrumb.item active=true
    span= t 'models.project'
    span : 
    = model.name
.ui.container
  .ui.header
    .ui.right.floated.icon.buttons
      if (can 'manage' 'model' 'panda/project')
        = push-action type='edit' action='editProject' model=model
      /= push-action type='sort' action='sortWorkflowSteps'
      /= push-action type='show' action='displayWorkflowActionDefinitions'
    h2
      span.resource-descriptor= t 'models.project'
      span.resource-name= model.name
  .ui.segment
    if (can 'manage' 'model' 'panda/project')
      h2.ui.header
        i.grid.layout.icon
        .content= link-to 'project.show.dunlop' model: span= t 'project.dunlop.title'
    h2.ui.header
      i.bar.chart.icon
      .content= link-to 'project.show.analysis' model: span= t 'project.analysis.title'
    if (can 'operate' 'model' 'panda/project')
      h2.ui.header
        /i.icons
          i.database.icon
          i.cogs.icon
        /i.paint.brush.icon
        i.wrench.icon
        /i.schlix.icon
        .content= link-to 'project.show.operate' model: span= t 'project.operate.title'
    /ul.ui.list
      li= link-to 'project.show.dunlop' model
        span= t 'project.dunlop.title'
      li= link-to 'project.show.dunlop-generator' model
        span= t 'project.dunlop_generator.title'
      li= link-to 'project.show.add-progress' model
        span= t 'project.add_progress.title'
  if (can 'manage' 'model' 'panda/project-instance')
    .ui.segment
      .ui.three.column.stackable.grid
        .column= link-to 'project.show.project-instance' model class='ui fluid button'
          i.list.icon
          span= t 'models.plural.project_instance'
        .column= link-to 'project.show.project-instance-group' model class='ui fluid button'
          i.list.icon
          span= t 'models.plural.project_instance_group'
        .column= link-to 'project.show.project-instance-action' model class="ui fluid button"
          i.list.icon
          span= t 'models.plural.project_instance_action'
        /li= link-to 'project.show.tracker-subjects' model
          span= t 'models.plural.tracker_subject'
          ul
            each tracker_subjects as |tracker_subject|
              li= link-to 'project.show.tracker-subject' model.id tracker_subject.id: span= tracker_subject.name

