<commit_before>{{strip}}
  {{set layout="main.tpl"}}
  {{use class="app\models\User"}}
  {{use class="app\models\Battle"}}
  <div class="container">
    <p class="text-right" style="margin-bottom:0">
      Switch Language:&#32;
      {{use class="app\models\Language"}}
      {{foreach Language::find()->orderBy('name ASC')->asArray()->all() as $lang}}
        {{if !$lang@first}}
          &#32;/&#32;
        {{/if}}
        <a href="javascript:;" data-lang="{{$lang.lang|escape}}" class="language-change auto-tooltip" style="white-space:nowrap" title="Switch to {{$lang.name_en|escape}}">
          <span class="flag-icon flag-icon-{{$lang.lang|substr:3:2|strtolower|escape}}"></span>&#32;{{$lang.name|escape}}
        </a>
      {{/foreach}}
    </p>
    <p class="text-right" style="margin-bottom:0">
      {{\app\assets\CounterAsset::register($this)|@void}}
      <span style="white-space:nowrap">
        Users: <span class="dseg-counter" data-type="users">{{User::getRoughCount()|default:'?'|escape}}</span>,
      </span>&#32;<span style="white-space:nowrap">
        Battles: <span class="dseg-counter" data-type="battles">{{Battle::getRoughCount()|default:'?'|escape}}</span>
      </span>
    </p>
    {{\app\assets\PaintballAsset::register($this)|@void}}
    <h1 class="paintball" style="font-size:42px">
      {{$app->name|escape}}
    </h1>
    <p>
      {{'Staaaay Fresh!'|translate:'app'|escape}}
    </p>
    <p>
      {{if $app->user->isGuest}}
        {{$ident = null}}
        <a href="{{url route="user/register"}}">{{'Join us'|translate:'app'|escape}}</a>
      {{else}}
        {{$ident = $app->user->identity}}
        <a href="{{url route="show/user" screen_name=$ident->screen_name}}">{{'Your Battles'|translate:'app'|escape}}</a>
      {{/if}} | <a href="{{url route="site/start"}}">{{'Getting Started'|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="site/faq"}}">{{"FAQ"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/users"}}">{{"Stats: User Activity"|translate:'app'|escape}}</a><br>

      <a href="{{url route="entire/kd-win"}}">{{"Stats: K/D vs Win %"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/knockout"}}">{{"Stats: Knockout Ratio"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/weapons"}}">{{"Stats: Weapons"|translate:'app'|escape}}</a>
    </p>
    <p>
      <a href="{{url route="site/color"}}">{{'About support for color-blindness'|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="site/privacy"}}#image">{{'About image sharing with the IkaLog team'|translate:'app'|escape}}</a>
    </p>

    {{SnsWidget}}

    {{use class="app\models\BlogEntry"}}
    {{$blogEntries = BlogEntry::find()
        ->orderBy('[[at]] DESC')
        ->limit(3)
        ->asArray()
        ->all()}}
    {{if $blogEntries}}
      <p class="bg-success" style="padding:15px;border-radius:10px">
        {{foreach $blogEntries as $entry}}
          {{if !$entry@first}} | {{/if}}
          <span style="white-space:nowrap">
            <a href="{{$entry.url|escape}}">
              {{$entry.title|escape}}
            </a>&#32;
            ({{$entry.at|active_reltime}})
          </span>
        {{/foreach}}
      </p>
    {{/if}}

    {{use class="app\models\Splatfest"}}
    {{$fest = Splatfest::findCurrentFest()
        ->joinWith('splatfestMaps.map')
        ->andWhere(['region_id' => $app->splatoonRegion])
        ->one()}}
    {{if $fest}}
      {{\app\assets\MapImageAsset::register($this)|@void}}
      <h2>
        {{'Splatfest'|translate:'app'|escape}}
      </h2>
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
          <h3>
            {{'Turf War'|translate:'app-rule'|escape}}
          </h3>
          <ul class="battles fest-maps">
            {{foreach $fest->splatfestMaps as $_}}
              {{if $_ && $_->map}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{* ここ本当は night/ *}}
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/if}}
            {{/foreach}}
          </ul>
        </div>
      </div>
      {{if $fest->region->key == 'jp'}}
        <p class="text-right" style="font-size:10px;line-height:1.1">
          Powered by <a href="http://splapi.retrorocket.biz/" target="_blank" rel="nofollow">
            スプラトゥーンのステージじょうほうがとれるやつ
          </a>
        </p>
      {{/if}}
      <p class="text-right" style="font-size:10px;line-height:1.1">
        勝率推計：
        <a href="{{url route="fest/view" region=$fest->region->key order=$fest->order}}">{{$app->name|escape}}の投稿情報</a>
        {{if $fest->region->key == 'jp'}}
          , <a href="https://fest.ink/{{$fest->order|escape:url}}">イカフェスレート</a>
        {{/if}}
      </p>
    {{else}}
      {{use class="app\models\PeriodMap"}}
      {{$stageInfo = PeriodMap::getSchedule()}}
      {{if $stageInfo->current->regular || $stageInfo->current->gachi}}
        {{\app\assets\MapImageAsset::register($this)|@void}}
        {{$timeFormat = '%H:%M'}}
        {{if $app->language == 'en-US'}}
          {{$timeFormat = '%l:%M %p'}}
        {{/if}}
        <h2>
          <span class="hidden-xs">{{'Current Stage'|translate:'app'|escape}}</span>
          {{if $stageInfo->current->t}}
            {{$t = $stageInfo->current->t}}
            <span class="hidden-xs">&#32;[</span>
            {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
            <span class="hidden-xs">]</span>
          {{/if}}
          {{if $stageInfo->next->regular || $stageInfo->next->gachi}}
            &#32;<button id="show-next-stage" type="button" class="btn btn-default">
              {{if $stageInfo->next->t}}
                {{$t = $stageInfo->next->t}}
                {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
              {{else}}
                {{'Next Stage'|translate:'app'|escape}}
              {{/if}}
            </button>
            {{registerJs}}
              $('#show-next-stage').click(function(){
                var $this = $(this);
                var $next = $('#next-stage');
                $.smoothScroll({
                  offset: -60,
                  scrollTarget: $next,
                  beforeScroll: function () {
                    $next.show('fast');
                    $this.hide();
                  }
                });
                return false;
              });
            {{/registerJs}}
          {{/if}}
        </h2>
        <div class="row">
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
            <h3>
              {{$stageInfo->current->regular.0->rule->name|translate:'app-rule'|escape}}
            </h3>
            <ul class="battles maps">
              {{foreach $stageInfo->current->regular as $_}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/foreach}}
            </ul>
          </div>
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
            <h3>
              {{$stageInfo->current->gachi.0->rule->name|translate:'app-rule'|escape}}
            </h3>
            <ul class="battles maps">
              {{foreach $stageInfo->current->gachi as $_}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/foreach}}
            </ul>
          </div>
        </div>
        {{if $stageInfo->next->regular && $stageInfo->next->gachi}}
          {{registerCss}}
            #next-stage{display:none}
          {{/registerCss}}
          <div id="next-stage">
            <h2>
              <span class="hidden-xs">{{'Next Stage'|translate:'app'|escape}}</span>
              {{if $stageInfo->next->t}}
                {{$t = $stageInfo->next->t}}
                <span class="hidden-xs">&#32;[</span>
                {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
                <span class="hidden-xs">]</span>
              {{/if}}
            </h2>
            <div class="row">
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
                <h3>
                  {{$stageInfo->next->regular.0->rule->name|translate:'app-rule'|escape}}
                </h3>
                <ul class="battles maps">
                  {{foreach $stageInfo->next->regular as $_}}
                    <li>
                      <div class="battle">
                        <div class="battle-image">
                          {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                          <img src="{{$app->assetManager->getAssetUrl(
                              $app->assetManager->getBundle('app\assets\MapImageAsset'),
                              $mapFile
                            )}}">
                        </div>
                        <div class="battle-data row">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                            {{$_->map->name|translate:'app-map'|escape}}
                          </div>
                        </div>
                      </div>
                    </li>
                  {{/foreach}}
                </ul>
              </div>
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
                <h3>
                  {{$stageInfo->next->gachi.0->rule->name|translate:'app-rule'|escape}}
                </h3>
                <ul class="battles maps">
                  {{foreach $stageInfo->next->gachi as $_}}
                    <li>
                      <div class="battle">
                        <div class="battle-image">
                          {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                          <img src="{{$app->assetManager->getAssetUrl(
                              $app->assetManager->getBundle('app\assets\MapImageAsset'),
                              $mapFile
                            )}}">
                        </div>
                        <div class="battle-data row">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                            {{$_->map->name|translate:'app-map'|escape}}
                          </div>
                        </div>
                      </div>
                    </li>
                  {{/foreach}}
                </ul>
              </div>
            </div>
          </div>
        {{/if}}
        <p class="text-right" style="font-size:10px;line-height:1.1">
          Powered by <a href="http://splapi.retrorocket.biz/" target="_blank" rel="nofollow">
            スプラトゥーンのステージじょうほうがとれるやつ
          </a>
        </p>
      {{/if}}
    {{/if}}

    {{if $ident}}
      {{$battles = $ident->getBattles()
        ->with(['user', 'rule', 'map', 'battleImageResult'])
        ->limit(12)
        ->all()}}
      {{if $battles}}
        {{$title = "{0}'s Battle"|translate:'app':$ident->name}}
        <h2>
          <a href="{{url route="show/user" screen_name=$ident->screen_name}}">
            {{$title|escape}}
          </a>
        </h2>
        {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$battles}}
      {{/if}}
    {{/if}}

    <h2>
      {{'Active Players'|translate:'app'|escape}}
    </h2>
    <p class="text-right" style="margin:0">
      <a href="{{url route="site/users"}}">
        {{'Show All Players'|translate:'app'|escape}}
      </a>
    </p>
    {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$active}}

    <h2>
      {{'Recent Battles'|translate:'app'|escape}}
    </h2>
    {{$battles = Battle::find()
        ->with(['user', 'rule', 'map', 'battleImageResult'])
        ->limit(100)
        ->all()}}
    {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$battles}}
  </div>
{{/strip}}
<commit_msg>:+1: ダウンロードページへのリンクを追加<commit_after>{{strip}}
  {{set layout="main.tpl"}}
  {{use class="app\models\User"}}
  {{use class="app\models\Battle"}}
  <div class="container">
    <p class="text-right" style="margin-bottom:0">
      Switch Language:&#32;
      {{use class="app\models\Language"}}
      {{foreach Language::find()->orderBy('name ASC')->asArray()->all() as $lang}}
        {{if !$lang@first}}
          &#32;/&#32;
        {{/if}}
        <a href="javascript:;" data-lang="{{$lang.lang|escape}}" class="language-change auto-tooltip" style="white-space:nowrap" title="Switch to {{$lang.name_en|escape}}">
          <span class="flag-icon flag-icon-{{$lang.lang|substr:3:2|strtolower|escape}}"></span>&#32;{{$lang.name|escape}}
        </a>
      {{/foreach}}
    </p>
    <p class="text-right" style="margin-bottom:0">
      {{\app\assets\CounterAsset::register($this)|@void}}
      <span style="white-space:nowrap">
        Users: <span class="dseg-counter" data-type="users">{{User::getRoughCount()|default:'?'|escape}}</span>,
      </span>&#32;<span style="white-space:nowrap">
        Battles: <span class="dseg-counter" data-type="battles">{{Battle::getRoughCount()|default:'?'|escape}}</span>
      </span>
    </p>
    {{\app\assets\PaintballAsset::register($this)|@void}}
    <h1 class="paintball" style="font-size:42px">
      {{$app->name|escape}}
    </h1>
    <p>
      {{'Staaaay Fresh!'|translate:'app'|escape}}
    </p>
    <p>
      {{if $app->user->isGuest}}
        {{$ident = null}}
        <a href="{{url route="user/register"}}">{{'Join us'|translate:'app'|escape}}</a>
      {{else}}
        {{$ident = $app->user->identity}}
        <a href="{{url route="show/user" screen_name=$ident->screen_name}}">{{'Your Battles'|translate:'app'|escape}}</a>
      {{/if}} | <a href="{{url route="site/start"}}">{{'Getting Started'|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="site/faq"}}">{{"FAQ"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/users"}}">{{"Stats: User Activity"|translate:'app'|escape}}</a><br>

      <a href="{{url route="entire/kd-win"}}">{{"Stats: K/D vs Win %"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/knockout"}}">{{"Stats: Knockout Ratio"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="entire/weapons"}}">{{"Stats: Weapons"|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="download-stats/index"}}">統計情報ダウンロード(開発中)</a>
    </p>
    <p>
      <a href="{{url route="site/color"}}">{{'About support for color-blindness'|translate:'app'|escape}}</a> |
      &#32;<a href="{{url route="site/privacy"}}#image">{{'About image sharing with the IkaLog team'|translate:'app'|escape}}</a>
    </p>

    {{SnsWidget}}

    {{use class="app\models\BlogEntry"}}
    {{$blogEntries = BlogEntry::find()
        ->orderBy('[[at]] DESC')
        ->limit(3)
        ->asArray()
        ->all()}}
    {{if $blogEntries}}
      <p class="bg-success" style="padding:15px;border-radius:10px">
        {{foreach $blogEntries as $entry}}
          {{if !$entry@first}} | {{/if}}
          <span style="white-space:nowrap">
            <a href="{{$entry.url|escape}}">
              {{$entry.title|escape}}
            </a>&#32;
            ({{$entry.at|active_reltime}})
          </span>
        {{/foreach}}
      </p>
    {{/if}}

    {{use class="app\models\Splatfest"}}
    {{$fest = Splatfest::findCurrentFest()
        ->joinWith('splatfestMaps.map')
        ->andWhere(['region_id' => $app->splatoonRegion])
        ->one()}}
    {{if $fest}}
      {{\app\assets\MapImageAsset::register($this)|@void}}
      <h2>
        {{'Splatfest'|translate:'app'|escape}}
      </h2>
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
          <h3>
            {{'Turf War'|translate:'app-rule'|escape}}
          </h3>
          <ul class="battles fest-maps">
            {{foreach $fest->splatfestMaps as $_}}
              {{if $_ && $_->map}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{* ここ本当は night/ *}}
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/if}}
            {{/foreach}}
          </ul>
        </div>
      </div>
      {{if $fest->region->key == 'jp'}}
        <p class="text-right" style="font-size:10px;line-height:1.1">
          Powered by <a href="http://splapi.retrorocket.biz/" target="_blank" rel="nofollow">
            スプラトゥーンのステージじょうほうがとれるやつ
          </a>
        </p>
      {{/if}}
      <p class="text-right" style="font-size:10px;line-height:1.1">
        勝率推計：
        <a href="{{url route="fest/view" region=$fest->region->key order=$fest->order}}">{{$app->name|escape}}の投稿情報</a>
        {{if $fest->region->key == 'jp'}}
          , <a href="https://fest.ink/{{$fest->order|escape:url}}">イカフェスレート</a>
        {{/if}}
      </p>
    {{else}}
      {{use class="app\models\PeriodMap"}}
      {{$stageInfo = PeriodMap::getSchedule()}}
      {{if $stageInfo->current->regular || $stageInfo->current->gachi}}
        {{\app\assets\MapImageAsset::register($this)|@void}}
        {{$timeFormat = '%H:%M'}}
        {{if $app->language == 'en-US'}}
          {{$timeFormat = '%l:%M %p'}}
        {{/if}}
        <h2>
          <span class="hidden-xs">{{'Current Stage'|translate:'app'|escape}}</span>
          {{if $stageInfo->current->t}}
            {{$t = $stageInfo->current->t}}
            <span class="hidden-xs">&#32;[</span>
            {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
            <span class="hidden-xs">]</span>
          {{/if}}
          {{if $stageInfo->next->regular || $stageInfo->next->gachi}}
            &#32;<button id="show-next-stage" type="button" class="btn btn-default">
              {{if $stageInfo->next->t}}
                {{$t = $stageInfo->next->t}}
                {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
              {{else}}
                {{'Next Stage'|translate:'app'|escape}}
              {{/if}}
            </button>
            {{registerJs}}
              $('#show-next-stage').click(function(){
                var $this = $(this);
                var $next = $('#next-stage');
                $.smoothScroll({
                  offset: -60,
                  scrollTarget: $next,
                  beforeScroll: function () {
                    $next.show('fast');
                    $this.hide();
                  }
                });
                return false;
              });
            {{/registerJs}}
          {{/if}}
        </h2>
        <div class="row">
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
            <h3>
              {{$stageInfo->current->regular.0->rule->name|translate:'app-rule'|escape}}
            </h3>
            <ul class="battles maps">
              {{foreach $stageInfo->current->regular as $_}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/foreach}}
            </ul>
          </div>
          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
            <h3>
              {{$stageInfo->current->gachi.0->rule->name|translate:'app-rule'|escape}}
            </h3>
            <ul class="battles maps">
              {{foreach $stageInfo->current->gachi as $_}}
                <li>
                  <div class="battle">
                    <div class="battle-image">
                      {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                      <img src="{{$app->assetManager->getAssetUrl(
                          $app->assetManager->getBundle('app\assets\MapImageAsset'),
                          $mapFile
                        )}}">
                    </div>
                    <div class="battle-data row">
                      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                        {{$_->map->name|translate:'app-map'|escape}}
                      </div>
                    </div>
                  </div>
                </li>
              {{/foreach}}
            </ul>
          </div>
        </div>
        {{if $stageInfo->next->regular && $stageInfo->next->gachi}}
          {{registerCss}}
            #next-stage{display:none}
          {{/registerCss}}
          <div id="next-stage">
            <h2>
              <span class="hidden-xs">{{'Next Stage'|translate:'app'|escape}}</span>
              {{if $stageInfo->next->t}}
                {{$t = $stageInfo->next->t}}
                <span class="hidden-xs">&#32;[</span>
                {{$t.0|date_format:$timeFormat|escape}}-{{$t.1|date_format:$timeFormat|escape}}
                <span class="hidden-xs">]</span>
              {{/if}}
            </h2>
            <div class="row">
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
                <h3>
                  {{$stageInfo->next->regular.0->rule->name|translate:'app-rule'|escape}}
                </h3>
                <ul class="battles maps">
                  {{foreach $stageInfo->next->regular as $_}}
                    <li>
                      <div class="battle">
                        <div class="battle-image">
                          {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                          <img src="{{$app->assetManager->getAssetUrl(
                              $app->assetManager->getBundle('app\assets\MapImageAsset'),
                              $mapFile
                            )}}">
                        </div>
                        <div class="battle-data row">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                            {{$_->map->name|translate:'app-map'|escape}}
                          </div>
                        </div>
                      </div>
                    </li>
                  {{/foreach}}
                </ul>
              </div>
              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6">
                <h3>
                  {{$stageInfo->next->gachi.0->rule->name|translate:'app-rule'|escape}}
                </h3>
                <ul class="battles maps">
                  {{foreach $stageInfo->next->gachi as $_}}
                    <li>
                      <div class="battle">
                        <div class="battle-image">
                          {{$mapFile = 'daytime/'|cat:$_->map->key:'.jpg'}}
                          <img src="{{$app->assetManager->getAssetUrl(
                              $app->assetManager->getBundle('app\assets\MapImageAsset'),
                              $mapFile
                            )}}">
                        </div>
                        <div class="battle-data row">
                          <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 omit">
                            {{$_->map->name|translate:'app-map'|escape}}
                          </div>
                        </div>
                      </div>
                    </li>
                  {{/foreach}}
                </ul>
              </div>
            </div>
          </div>
        {{/if}}
        <p class="text-right" style="font-size:10px;line-height:1.1">
          Powered by <a href="http://splapi.retrorocket.biz/" target="_blank" rel="nofollow">
            スプラトゥーンのステージじょうほうがとれるやつ
          </a>
        </p>
      {{/if}}
    {{/if}}

    {{if $ident}}
      {{$battles = $ident->getBattles()
        ->with(['user', 'rule', 'map', 'battleImageResult'])
        ->limit(12)
        ->all()}}
      {{if $battles}}
        {{$title = "{0}'s Battle"|translate:'app':$ident->name}}
        <h2>
          <a href="{{url route="show/user" screen_name=$ident->screen_name}}">
            {{$title|escape}}
          </a>
        </h2>
        {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$battles}}
      {{/if}}
    {{/if}}

    <h2>
      {{'Active Players'|translate:'app'|escape}}
    </h2>
    <p class="text-right" style="margin:0">
      <a href="{{url route="site/users"}}">
        {{'Show All Players'|translate:'app'|escape}}
      </a>
    </p>
    {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$active}}

    <h2>
      {{'Recent Battles'|translate:'app'|escape}}
    </h2>
    {{$battles = Battle::find()
        ->with(['user', 'rule', 'map', 'battleImageResult'])
        ->limit(100)
        ->all()}}
    {{include file="@app/views/includes/battle_thumb_list.tpl" battles=$battles}}
  </div>
{{/strip}}

{'fraction_non_alphanumeric': 0.20281976006668842, 'fraction_numerical': 0.012431590011235548, 'mean_word_length': 1.5910414123391867, 'pattern_counts': {'":': 0, '<': 389, '<?xml version=': 0, '>': 643, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5285026', 'n_tokens_mistral': 8932, 'n_tokens_neox': 8457, 'n_words': 1234}