playlist.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends "/html/base.html" %}
  2. {% block head %}
  3. <meta name="twitter:card" content="summary_large_image">
  4. <meta name="twitter:site" content="@ispoogedaily">
  5. <meta name="twitter:creator" content="@harlanji">
  6. <meta property="og:url" content="{{site-url}}{{uri}}">
  7. <meta property="og:title" content="{{ post.title }}">
  8. <meta property="og:description" content="Playlist {{ post.title }}">
  9. {% endblock %}
  10. {% block content %}
  11. <div id="playlist">
  12. <h2>{{ post.title }}</h2>
  13. {% for video in post.playlist-items %}
  14. {% ifequal forloop.counter0|mod:3 0 %}
  15. <div class="row">
  16. {% endifequal %}
  17. <div class="col-md-4">
  18. <div class="card mb-4 box-shadow">
  19. <a href="{{ video.url }}">
  20. <img class="card-img-top"
  21. src="{{ video.video-thumbnail-url }}"
  22. alt="Thumbnail [100%x225]" style="height: 225px; width: 100%; display: block;"
  23. data-holder-rendered="true">
  24. </a>
  25. <div class="card-body">
  26. <p class="card-text"><a href="{{ video.url }}">{{ video.title }}</a></p>
  27. <div class="d-flex justify-content-between align-items-center">
  28. <div class="btn-group">
  29. <a href="{{ video.url }}"><button type="button" class="btn btn-sm btn-outline-secondary">View</button></a>
  30. </div>
  31. <small class="text-muted">9 mins</small>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. {% ifequal forloop.counter0|mod:3 2 %}
  37. </div>
  38. {% else %}
  39. {% if forloop.last %}
  40. </div>
  41. {% endif %}
  42. {% endifequal %}
  43. {% endfor %}
  44. </div>
  45. {% endblock %}