videos.html 1.6 KB

123456789101112131415161718192021222324252627282930
  1. {% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
  2. {{ result_header(result, favicons, loop.index) }}
  3. {{ result_sub_header(result, loop.index) }}
  4. {% if result.embedded %}
  5. <small> &bull; <a class="text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs" data-toggle="collapse" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}" aria-labelledby="result-{{loop.index}}">{{ icon('film') }} {{ _('show video') }}</a></small>
  6. {% endif %}
  7. {% if result.embedded %}
  8. <div id="result-video-{{ index }}" class="collapse">
  9. {{ result.embedded|safe }}
  10. </div>
  11. {% endif %}
  12. <div class="container-fluid">
  13. <div class="row">
  14. <a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><img class="thumbnail col-xs-6 col-sm-4 col-md-4 result-content" src="{{ image_proxify(result.thumbnail) }}" aria-labelledby="result-{{loop.index}}" /></a>
  15. {% if result.author %}<p class="col-xs-12 col-sm-8 col-md-8 result-content"><b>{{ _('Author') }}</b>: {{ result.author }}</p>{% endif %}
  16. {% if result.length %}<p class="col-xs-12 col-sm-8 col-md-8 result-content"><b>{{ _('Length') }}</b>: {{ result.length }}</p>{% endif %}
  17. {% if result.content %}<p class="col-xs-12 col-sm-8 col-md-8 result-content">{{ result.content|safe }}</p>{% endif %}
  18. </div>
  19. </div>
  20. {% if rtl %}
  21. {{ result_footer_rtl(result, loop.index) }}
  22. {% else %}
  23. {{ result_footer(result, loop.index) }}
  24. {% endif %}