favorites.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends 'base.html' %}
  2. {% load humanize %}
  3. {% block content %}
  4. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
  5. <h1 class="h2">Favorite Playlists
  6. <span class="badge bg-primary rounded-pill">{{ playlists.count|default:"0" }}</span>
  7. {% if playlists %}
  8. <a href="{% url 'all_playlists' 'favorites' %}" style="text-decoration: none; color: black"><i class="fas fa-search"></i></a>
  9. {% endif %}
  10. </h1>
  11. </div>
  12. <div>
  13. <div class="row row-cols-1 row-cols-md-4 g-4">
  14. {% if playlists %}
  15. {% include 'intercooler/playlists.html' with playlists=playlists %}
  16. {% else %}
  17. <h5 class="text-dark align-content-center">No playlists marked favorite :(</h5>
  18. {% endif %}
  19. </div>
  20. </div>
  21. <br>
  22. <br>
  23. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
  24. <h1 class="h2">Favorite Videos
  25. <span class="badge bg-primary rounded-pill">{{ videos.count }}</span>
  26. {% if videos %}
  27. <a href="{% url 'search_UnTube' %}" style="text-decoration: none; color: black"><i class="fas fa-search"></i></a>
  28. {% endif %}
  29. </h1>
  30. </div>
  31. <div>
  32. <div class="row row-cols-1 row-cols-md-3 g-4">
  33. {% if videos %}
  34. {% include 'intercooler/video_cards.html' with videos=videos %}
  35. {% else %}
  36. <h5 class="text-dark align-content-center">No videos marked favorite :(</h5>
  37. {% endif %}
  38. </div>
  39. </div>
  40. {% endblock %}