<div class='ad_leader' id='dfp-directory-banner'></div>

<div id='directory-list'>
  <div class='streams-grid items-grid'>

    <div class='directory_header'>
      {{#if isBrowseExperimentEnabled}}
        {{browse-experiment/browse/top-bar}}
      {{else}}
        <h2 class='title'>
          {{i18n 'Channels'}}
        </h2>
        {{#common/tab-container class="js-nav"}}
          {{#common/tab-item}}
            {{#link-to "directory.channels.all"}}
              {{i18n "Top"}}
            {{/link-to}}
          {{/common/tab-item}}
          {{#common/tab-item}}
            {{#link-to "directory.channels.random"}}
              {{i18n "Random"}}
            {{/link-to}}
          {{/common/tab-item}}
          {{#common/tab-item}}
            {{#link-to "directory.channels.broadcasterLanguage" languageCode}}
              {{languageName}}
            {{/link-to}}
          {{/common/tab-item}}
        {{/common/tab-container}}
      {{/if}}
    </div>

    <div class='section_header first'>
      <h3 class='title'>
        {{liveChannelText}}
      </h3>
    </div>

    <div class='js-streams streams items'>
      {{#infinite-scroll action="loadMoreStreams" hideMore=content.hideMore isLoading=content.isLoading contentLength=content.length classNames="tower tower--bleed tower--240 tower--gutter-sm"}}
        {{#each model as |stream index|}}
          {{stream-preview stream=stream tt_medium="twitch_directory" tt_content="language_stream" tt_content_index=index}}
        {{/each}}
        {{tower-placeholder}}
      {{/infinite-scroll}}
    </div>

    {{#if model.isLoading}}
      {{loading-more-spinner}}
    {{else if (not model.length)}}
      <p class='empty-grid'>
        {{t 'general.Twitch.noChannelsLive'}}
      </p>

      {{interactivity-beacon beaconId="no-broadcaster-language-channels-are-live"}}
    {{/if}}

  </div>
</div>
