manage_playlists.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. {% if user.profile.imported_yt_playlists %}
  4. <div hx-get="{% url 'user_playlists_updates' 'check-for-updates' %}" hx-trigger="load" hx-swap="outerHTML">
  5. </div>
  6. {% endif %}
  7. <div class="row row-cols-1 row-cols-md-3 g-4" data-masonry='{"percentPosition": true }'>
  8. <div id="manage-import-playlists-btn" class="col">
  9. <a href="{% url 'manage_view_page' 'import' %}" class="text-decoration-none text-white">
  10. <div class="card" style="background-color: #25641a;">
  11. <div class="card-body">
  12. <h4 class="card-title">Import Playlists</h4>
  13. <p class="card-text">Add public playlists to your own collection. Unfortunately, the YouTube API doesn't let us retrieve your watch later playlist :(</p>
  14. </div>
  15. </div>
  16. </a>
  17. </div>
  18. <div id="manage-create-playlists-btn" class="col">
  19. <a href="{% url 'manage_view_page' 'create' %}" class="text-decoration-none text-white">
  20. <div class="card" style="background-color: #64631a;">
  21. <div class="card-body">
  22. <h4 class="card-title">Create a New Playlist</h4>
  23. <p class="card-text">Make a new playlist using the videos in your collection and export it to YouTube!</p>
  24. </div>
  25. </div>
  26. </a>
  27. </div>
  28. <div id="manage-untube-playlists-btn" class="col">
  29. <a hx-get="{% url 'manage_view_page' 'untube' %}" hx-trigger="click" hx-target="#manage-pl-div" class="text-decoration-none text-white">
  30. <div class="card" style="background-color: #641a52;">
  31. <div class="card-body">
  32. <h4 class="card-title">Create an UnTube Playlist</h4>
  33. <p class="card-text">UnTube playlists are playlists can contain YouTube videos and YouTube playlists which can then be shared with other users via a link. Coming soon. Maybe.</p>
  34. </div>
  35. </div>
  36. </a>
  37. </div>
  38. <div id="manage-add-videos-btn" class="col">
  39. <a hx-get="{% url 'manage_view_page' 'add-videos-to-playlists' %}" hx-trigger="click" hx-target="#manage-pl-div" class="text-decoration-none text-white">
  40. <div class="card" style="background-color: #a75e27;">
  41. <div class="card-body">
  42. <h4 class="card-title">Add Videos to Existing Playlists</h4>
  43. <p class="card-text">Add videos to existing YouTube playlists by searching for YouTube videos in your UnTube collection or by inputting YouTube video links.</p>
  44. </div>
  45. </div>
  46. </a>
  47. </div>
  48. <div id="manage-delete-playlists-btn" class="col">
  49. <a hx-get="{% url 'manage_view_page' 'nuke-playlists' %}" hx-trigger="click" hx-target="#manage-pl-div" class="text-decoration-none text-white">
  50. <div class="card" style="background-color: #286593;">
  51. <div class="card-body">
  52. <h4 class="card-title">Merge Playlists</h4>
  53. <p class="card-text">Merge two or more playlists into a single one.</p>
  54. </div>
  55. </div>
  56. </a>
  57. </div>
  58. <div id="manage-delete-playlists-btn" class="col">
  59. <a hx-get="{% url 'manage_view_page' 'nuke-playlists' %}" hx-trigger="click" hx-target="#manage-pl-div" class="text-decoration-none text-white">
  60. <div class="card" style="background-color: #a72744;">
  61. <div class="card-body">
  62. <h4 class="card-title">Nuke Playlists</h4>
  63. <p class="card-text">Bulk delete multiple YouTube playlists, or just remove them from UnTube.</p>
  64. </div>
  65. </div>
  66. </a>
  67. </div>
  68. </div>
  69. {% endblock %}