<div id="directory-list">
  {{persistant-banners}}

  <div class="new-dashboard">
    <div class="directory_header">
      <h2 class="title">
        {{i18n 'Dashboard'}}
      </h2>
      {{#common/tab-container class="js-nav"}}
        {{#common/tab-item}}
          {{#link-to 'dashboards.index'}}{{i18n 'Live'}}{{/link-to}}
        {{/common/tab-item}}
        {{#if isOwner}}
          {{#common/tab-item}}
            <a href={{permissionsHref}}>{{i18n 'Editing'}}</a>
          {{/common/tab-item}}
        {{/if}}
        {{#if (or isOwner isStaff isAdmin)}}
          {{#common/tab-item}}
            <a href={{actionLogHref}}>{{i18n 'Activity'}}</a>
          {{/common/tab-item}}
        {{/if}}
        {{#if (or isOwner isStaff)}}
          {{#common/tab-item}}
            <a href={{statsHref}}>{{i18n 'Stats'}}</a>
          {{/common/tab-item}}
        {{/if}}
        {{#if (or isOwner isStaff isAdmin)}}
          {{#common/tab-item class="js-video-stats-link"}}
            {{#link-to 'dashboards.video-stats'}}{{t 'general.Twitch.videoStats'}}{{/link-to}}
            {{#if activeVideoStatsTab}}
              {{video/upload-tab}}
            {{/if}}
          {{/common/tab-item}}
        {{/if}}
        {{#if (and (or isOwner isStaff) hasPartnerProgram)}}
          {{#common/tab-item}}
            {{#link-to 'dashboards.revenue'}}{{i18n 'Revenue'}}{{/link-to}}
          {{/common/tab-item}}
          {{#common/tab-item}}
            {{#link-to 'dashboards.subscription-dash'}}{{i18n 'Partner Settings'}}{{/link-to}}
          {{/common/tab-item}}
        {{/if}}
        {{#if isOwner}}
          {{#common/tab-item}}
            {{#link-to 'dashboards.stream-key'}}
              {{i18n "Stream Key"}}
            {{/link-to}}
          {{/common/tab-item}}

          {{#common/tab-item}}
            {{#link-to 'broadcast'}}{{i18n 'Streaming Apps'}}{{/link-to}}
          {{/common/tab-item}}
        {{/if}}
        {{#common/tab-item}}
          {{#link-to 'manager.past-broadcasts.all'}}{{i18n 'Video Manager'}}{{/link-to}}
        {{/common/tab-item}}
        {{#if (and (in-experiment-group 'ORC') (or isOwner isStaff isAdmin) )}}
          {{#common/tab-item}}
            {{#link-to 'dashboards.events' data-test-selector="events-tab"}}
              {{i18n 'Events'}}
            {{/link-to}}
          {{/common/tab-item}}
        {{/if}}
      {{/common/tab-container}}
    </div>

    {{#if session.isAuthenticated}}
      {{outlet}}
    {{else}}
      {{i18n 'You must be logged in to use the broadcaster dashboard.'}}
    {{/if}}
  </div>
</div>
