d-breadcrumbs as |breadcrumb|
  breadcrumb.item
    = link-to 'project.index': span= t 'models.plural.project'
  breadcrumb.item
    span= t 'models.project'
    span : 
    = link-to 'project.show' project: span= project.name
  breadcrumb.item active=true
   span= t 'project.analysis.title'
.ui.container
  .ui.header
    .content
      span.resource-descriptor= t 'models.project'
      span.resource-name= project.name
      span.resource-suffix= t 'project.analysis.title'
  .ui.divider
  .ui.segment
    each-in model.analytics.instances as |state count|
      = link-to 'project.show.project-instance' project (query-params state=state)
        = state-badge state
          '
          span.between-brackets= count

  each project.sorted_workflow_groups as |workflow_group|
    .ui.segment
      .ui.header
        .content
          span= workflow_group.name
          span - 
          span= workflow_group.id
      each-in (get (get model.analytics 'instance_groups') workflow_group.id) as |state count|
        = link-to 'project.show.project-instance-group' project (query-params state=state)
          = state-badge state
            '
            span.between-brackets= count
      .ui.segments
        each workflow_group.sorted_workflow_action_definitions as |workflow_action_definition|
          .ui.segment
            span= workflow_action_definition.title
            each-in (get (get model.analytics 'instance_actions') workflow_action_definition.id) as |state count|
              '
              = link-to 'project.show.project-instance-action' project (query-params state=state)
                = state-badge state
                  '
                  span.between-brackets= count
  /br
  /= panda-image path="under-construction.svg"
