<DNavigationItem
  @route="userActivity.index"
  @class="user-nav__activity-all"
  @ariaCurrentContext={{@ariaCurrentContext}}
>
  {{d-icon "stream"}}
  <span>{{i18n "user.filters.all"}}</span>
</DNavigationItem>
<DNavigationItem
  @route="userActivity.topics"
  @class="user-nav__activity-topics"
  @ariaCurrentContext={{@ariaCurrentContext}}
>
  {{d-icon "list-ul"}}
  <span>{{i18n "user_action_groups.4"}}</span>
</DNavigationItem>
<DNavigationItem
  @route="userActivity.replies"
  @class="user-nav__activity-replies"
  @ariaCurrentContext={{@ariaCurrentContext}}
>
  {{d-icon "reply"}}
  <span>{{i18n "user_action_groups.5"}}</span>
</DNavigationItem>

{{#if @user.showRead}}
  <DNavigationItem
    @route="userActivity.read"
    @class="user-nav__activity-read"
    @title={{i18n "user.read_help"}}
    @ariaCurrentContext={{@ariaCurrentContext}}
  >
    {{d-icon "history"}}
    <span>{{i18n "user.read"}}</span>
  </DNavigationItem>
{{/if}}

{{#if @user.showDrafts}}
  <DNavigationItem
    @route="userActivity.drafts"
    @class="user-nav__activity-drafts"
    @ariaCurrentContext={{@ariaCurrentContext}}
  >
    {{d-icon "pencil-alt"}}
    <span>{{@draftLabel}}</span>
  </DNavigationItem>
{{/if}}

{{#if (gt @model.pending_posts_count 0)}}
  <DNavigationItem
    @route="userActivity.pending"
    @class="user-nav__activity-pending"
    @ariaCurrentContext={{@ariaCurrentContext}}
  >
    {{d-icon "clock"}}
    <span>{{@pendingLabel}}</span>
  </DNavigationItem>
{{/if}}

<DNavigationItem
  @route="userActivity.likesGiven"
  @class="user-nav__activity-likes"
  @ariaCurrentContext={{@ariaCurrentContext}}
>
  {{d-icon "heart"}}
  <span>{{i18n "user_action_groups.1"}}</span>
</DNavigationItem>

{{#if @user.showBookmarks}}
  <DNavigationItem
    @route="userActivity.bookmarks"
    @class="user-nav__activity-bookmarks"
    @ariaCurrentContext={{@ariaCurrentContext}}
  >
    {{d-icon "bookmark"}}
    <span>{{i18n "user_action_groups.3"}}</span>
  </DNavigationItem>
{{/if}}

<PluginOutlet
  @name="user-activity-bottom"
  @connectorTagName="li"
  @outletArgs={{hash model=@model}}
/>