d-breadcrumbs as |breadcrumb|
  breadcrumb.item
    = link-to 'tracker-subject.index': span= t 'models.plural.tracker_subject'
  breadcrumb.item active=true
    span= t 'models.tracker_subject'
    span : 
    = model.name

.ui.container
  .ui.header
    .ui.right.floated.icon.buttons
      = push-action type='new' action='newTrackerGroup'
      = push-action type='edit' action='editTrackerSubject' model=model
      = push-action type='sort' action='sortTrackerGroups'
    h2
      span.resource-descriptor= t 'models.tracker_subject'
      span.resource-name= model.name
  .ui.segment
    ul.ui.list
      li= link-to 'tracker-subject.show.tracking-connections' model.id: span Tracking
  br
if model.tracker_groups.isSettled
  .tracker-subject-tracker-groups-container
    each model.sorted_tracker_groups as |tracker_group|
      .tracker-subject-tracker-group-container
        .tracker-subject-tracker-group-title
          .ui.small.right.floated.icon.buttons
            = push-action type='edit' action='editTrackerGroup' model=tracker_group class='right'
            = push-action type='sort' action='sortTrackerItems' model=tracker_group class='right'
            = push-action type='new' action='newTrackerItem'    model=tracker_group class='right'
          = tracker_group.name
        .tracker-subject-tracker-group-body
          each tracker_group.sorted_tracker_items as |tracker_item|
            editable-attribute model=tracker_item
else
  .row: .small-12.columns: span.fa.fa-3x.fa-spinner.fa-spin
