src/Pumukit/WebTVBundle/Resources/views/Resources/template_video_info.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     {% if show_video_broadcast is defined and show_video_broadcast %}
  3.         <div class="col-xs-10">
  4.             <h3 class="video-title">{{ object.getTitle()| default('No title'|trans) }}</h3>
  5.         </div>
  6.         {% set broadcastType = object.getEmbeddedBroadcast().getType() %}
  7.         <div class="col-xs-2 text-right">
  8.             <span class="label label-default label-pmk label-pmk-{{ broadcastType }}">
  9.                 {% if show_video_broadcast_unify is defined and show_video_broadcast_unify and broadcastType != 'public' %}
  10.                     {{ "Private"|trans }}
  11.                 {% else %}
  12.                     {{ broadcastType|capitalize|trans }}
  13.                 {% endif %}
  14.             </span>
  15.         </div>
  16.     {% else %}
  17.         <div class="col-xs-12">
  18.             <h3 class="video-title">{{ object.getTitle()| default('No title'|trans) }}</h3>
  19.         </div>
  20.     {% endif %}
  21.     {% if show_video_subtitle is defined and show_video_subtitle %}
  22.         <div class="col-xs-12">
  23.             <h4 class="video-subtitle">
  24.                 <small>{{ object.getSubtitle()|default ('') }}</small>
  25.             </h4>
  26.         </div>
  27.     {% endif %}
  28.     <ul class="col-xs-12 list-group video-info-elements">
  29.         {% if show_video_date is defined and show_video_date %}
  30.             <li class="list-group-item list-group-item-custom video-date">
  31.                 {{ object.getRecordDate()| format_datetime('medium','none',locale=app.request.getLocale()) }}
  32.             </li>
  33.         {% endif %}
  34.         {% if show_video_description is defined and show_video_description %}
  35.             <li class="list-group-item list-group-item-custom video-description">
  36.                 {{ object.getDescription()|default('') }}
  37.             </li>
  38.         {% endif %}
  39.         {% if show_video_duration is defined and show_video_duration and mmobj_duration(object) %}
  40.             <li class="list-group-item list-group-item-custom duration">
  41.                 {% trans %}Duration{% endtrans %}:
  42.                 {{ mmobj_duration(object) | duration_string }}
  43.             </li>
  44.         {% endif %}
  45.         {% if show_video_views is defined and show_video_views %}
  46.             <li class="list-group-item list-group-item-custom video-views">
  47.                 {% trans %}Viewed{% endtrans %}: <span class="numView">{{ object.getNumview() }}</span>
  48.                 {{ "{0}times|{1}time|]1,Inf]times"|trans({'%count%':  object.getNumview()}) }}
  49.             </li>
  50.         {% endif %}
  51.         {% if show_video_elements is defined and show_video_elements %}
  52.             {% include "@PumukitWebTV/Misc/tracks.html.twig" %}
  53.             {% include "@PumukitWebTV/Misc/materials.html.twig" %}
  54.             {% include "@PumukitWebTV/Misc/links.html.twig" %}
  55.             {% include "@PumukitWebTV/Misc/people.html.twig" %}
  56.         {% endif %}
  57.     </ul>
  58. </div>