2
0

search_untube_results.html 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. {% load humanize %}
  2. {% if view_mode == "playlists" %}
  3. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center overflow-auto pt-3 pb-2 mb-3 border-bottom">
  4. <h1 class="h2">{{ playlist_type }} Playlists {% if search_query != "" %}results for '{{ search_query|escape }}' {% endif %} <span class="badge bg-primary rounded-pill">{{ playlists.count|default:"0" }}</span></h1>
  5. </div>
  6. <div class="row row-cols-1 row-cols-md-4 g-4">
  7. {% if playlists %}
  8. {% include 'intercooler/playlists.html' with playlists=playlists show_controls=True %}
  9. {% else %}
  10. <h5 class="text-dark align-content-center">No playlists found :(</h5>
  11. {% endif %}
  12. </div>
  13. {% else %}
  14. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center overflow-auto pt-3 pb-2 mb-3 border-bottom">
  15. <h1 class="h2">{{ videos_type }} Videos {% if search_query != "" %}results for '{{ search_query|escape }}' {% endif %} <span class="badge bg-primary rounded-pill">{{ videos.count }}</span> {% if videos.count > 100 %}<small>(only top 100 results shown)</small>{% endif %}</h1>
  16. </div>
  17. <div>
  18. <div class="row row-cols-1 row-cols-md-4 g-4">
  19. {% if videos %}
  20. {% include 'intercooler/video_cards.html' with videos=videos|slice:"0:100" %}
  21. {% else %}
  22. <h5 class="text-dark align-content-center">Nothing found :(</h5>
  23. {% endif %}
  24. </div>
  25. </div>
  26. {% endif %}
  27. <br>