src/Pumukit/WebTVBundle/Resources/views/Live/template.html.twig line 1

Open in your IDE?
  1. {% extends '@PumukitWebTV/layout.html.twig' %}
  2. {% set title = "Events"|trans %}
  3. {% block title %}{{ parent() }} - {{ title }}{% endblock %}
  4. {% block body %}
  5.         {% include "@PumukitWebTV/Misc/page_title.html.twig" %}
  6.         {% if eventsNow is empty and eventsToday is empty and eventsFuture is empty %}
  7.             <div class="row">
  8.                 <div class="col-xs-12" style="margin-top:20px;">
  9.                     <p>
  10.                         {% trans %}
  11.                         There are no scheduled live events. You will find ended live events in the series catalogue or through the media portal search.
  12.                         {% endtrans %}
  13.                     </p>
  14.                 </div>
  15.             </div>
  16.         {% else %}
  17.             {% if eventsNow|length > 0 %}
  18.                 <div class="row">
  19.                     <div class="col-xs-12">
  20.                         <ul>
  21.                             <li class="categories_list">
  22.                                 <div class="categories_list_block">
  23.                                     <h2>{% trans %}Now events{% endtrans %}</h2>
  24.                                     {% for eventNow in eventsNow %}
  25.                                         {% include '@PumukitWebTV/Resources/template_event.html.twig' with {'cols': objectByCol, 'event': eventNow['data'], 'defaultPic' : defaultPic, active: true} %}
  26.                                         {% include "@PumukitWebTV/Resources/template_clearfix.html.twig" %}
  27.                                     {% endfor %}
  28.                                 </div>
  29.                                 <div class="clearfix"></div>
  30.                             </li>
  31.                         </ul>
  32.                     </div>
  33.                 </div>
  34.             {% endif %}
  35.             {% if eventsToday|length > 0 %}
  36.                 <div class="row">
  37.                     <div class="col-xs-12">
  38.                         <ul>
  39.                             <li class="categories_list">
  40.                                 <div class="categories_list_block">
  41.                                     <h2>{% trans %}Today events{% endtrans %}</h2>
  42.                                     {% for eventToday in eventsToday %}
  43.                                         {% include '@PumukitWebTV/Resources/template_event.html.twig' with {'cols': objectByCol, 'event': eventToday['data'], 'defaultPic' : defaultPic, active: false} %}
  44.                                         {% include "@PumukitWebTV/Resources/template_clearfix.html.twig" %}
  45.                                     {% endfor %}
  46.                                 </div>
  47.                                 <div class="clearfix"></div>
  48.                             </li>
  49.                         </ul>
  50.                     </div>
  51.                 </div>
  52.             {% endif %}
  53.             {% if eventsFuture|length > 0 %}
  54.                 <div class="row">
  55.                     <div class="col-xs-12">
  56.                         <ul>
  57.                             <li class="categories_list">
  58.                                 <div class="categories_list_block">
  59.                                     <h2>{% trans %}Future events{% endtrans %}</h2>
  60.                                     {% for eventFuture in eventsFuture %}
  61.                                         {% include '@PumukitWebTV/Resources/template_event.html.twig' with {'cols': objectByCol, 'event': eventFuture['data'], 'defaultPic' : defaultPic, active: false} %}
  62.                                         {% include "@PumukitWebTV/Resources/template_clearfix.html.twig" %}
  63.                                     {% endfor %}
  64.                                 </div>
  65.                                 <div class="clearfix"></div>
  66.                             </li>
  67.                         </ul>
  68.                     </div>
  69.                     <div class="col-xs-12 text-center">
  70.                         {{ pagerfanta(eventsFuture, 'twitter_bootstrap3') }}
  71.                     </div>
  72.                 </div>
  73.             {% endif %}
  74.         {% endif %}
  75. {% endblock %}