templates/pages/battles.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}Battles{% endblock %}
  3. {% block bodyClass %}battlesBody{% endblock %}
  4. {% import "components/macros.html.twig" as macros %}
  5. {% block body %}
  6.     <section id="battles" class="battles">
  7.         <div class="container-fluid">
  8.             <div class="row">
  9.                 <div class="col-md-12">
  10.                     <div class="vertical-tab" role="tabpanel">
  11.                         <!-- Nav tabs -->
  12.                         <ul id="battlesTab" class="nav nav-tabs" role="tablist">
  13.                             <li role="presentation" class="active"><a href="#allBattlesTab" aria-controls="home" role="tab" data-toggle="tab">All battles</a></li>
  14.                             <li role="presentation"><a href="#mostViewedBattlesTab" aria-controls="profile" role="tab" data-toggle="tab">Most viewed battles</a></li>
  15.                         </ul>
  16.                         <!-- Tab panes -->
  17.                         <div class="tab-content tabs">
  18.                             <div role="tabpanel" class="tab-pane fade in active" id="allBattlesTab">
  19.                                 <h3>All battles</h3>
  20.                                 <div class="row">
  21.                                     {% if allBattles|length > 0 %}
  22.                                         <div class="battles-list">
  23.                                             {% for battle in allBattles %}
  24.                                                 {{ macros.renderCard('battlecard',null,battle) }}
  25.                                             {% endfor %}
  26.                                         </div>
  27.                                     {% else %}
  28.                                         <div class="no-content-message">
  29.                                             <p class="text-center">No battles at this moment :(</p>
  30.                                         </div>
  31.                                     {% endif %}
  32.                                     <nav aria-label="Battles navigation" style="margin: 0 auto">
  33.                                         <ul id="pagin" class="pagination">
  34.                                         </ul>
  35.                                     </nav>
  36.                                 </div>
  37.                             </div>
  38.                             <div role="tabpanel" class="tab-pane fade" id="mostViewedBattlesTab">
  39.                                 <h3>Most viewed battles</h3>
  40.                                 <div class="no-content-message">
  41.                                     <p class="text-center">No battles at this moment :(</p>
  42.                                 </div>
  43.                             </div>
  44.                         </div>
  45.                     </div>
  46.                 </div>
  47.             </div>
  48.         </div>
  49.     </section>
  50. {% endblock %}