{{> "_issues-facet-header"}}

<div class="search-navigator-facet-list">
  {{#notNull myIssues}}
    <a class="facet search-navigator-facet js-facet" data-value="__me__" title="{{t "me"}}">
      <span class="facet-name">{{t "me"}}</span>
      <span class="facet-stat">{{myIssues}}</span>
    </a>
    <hr>
  {{/notNull}}

  {{#each values}}
    {{#eq val ""}}
    {{! unassigned }}
      <a class="facet search-navigator-facet js-facet" data-unassigned title="{{t "unassigned"}}">
        <span class="facet-name">{{t "unassigned"}}</span>
        <span class="facet-stat">{{numberShort count}}</span>
      </a>
    {{else}}
      <a class="facet search-navigator-facet js-facet" data-value="{{val}}" title="{{label}}">
        <span class="facet-name">{{label}}</span>
        <span class="facet-stat">{{numberShort count}}</span>
      </a>
    {{/eq}}
  {{/each}}

  <div class="search-navigator-facet-custom-value">
    <input type="hidden" class="js-custom-value">
  </div>
</div>
