2
0

library.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="row row-cols-1 row-cols-md-3 g-4" >
  4. <div class="col">
  5. <a href="{% url 'library' 'all' %}" class="text-decoration-none text-white">
  6. <div class="card h-100" style="background-color: #64381a;">
  7. <div class="card-body">
  8. <h4 class="card-title">All Playlists</h4>
  9. <p class="card-text">Everything.</p>
  10. </div>
  11. </div>
  12. </a>
  13. </div>
  14. <div class="col">
  15. <a href="{% url 'library' 'user-owned' %}" class="text-decoration-none text-white">
  16. <div class="card h-100" style="background-color: #1A4464;">
  17. <div class="card-body">
  18. <h4 class="card-title">Your YouTube Playlists</h4>
  19. <p class="card-text">View a list of all the playlists you own on YouTube.</p>
  20. </div>
  21. </div>
  22. </a>
  23. </div>
  24. <div class="col">
  25. <a href="{% url 'library' 'imported' %}" class="text-decoration-none text-white">
  26. <div class="card h-100" style="background-color: #1a645e;">
  27. <div class="card-body">
  28. <h4 class="card-title">Imported Playlists</h4>
  29. <p class="card-text">View a list of all the external playlists you imported from YouTube.</p>
  30. </div>
  31. </div>
  32. </a>
  33. </div>
  34. <div class="col">
  35. <a href="{% url 'library' 'favorites' %}" class="text-decoration-none text-white">
  36. <div class="card h-100" style="background-color: #aa8c2e;">
  37. <div class="card-body">
  38. <h4 class="card-title">Favorite Playlists</h4>
  39. <p class="card-text">All the playlists you've marked favorite.</p>
  40. </div>
  41. </div>
  42. </a>
  43. </div>
  44. <div class="col">
  45. <a href="{% url 'library' 'watching' %}" class="text-decoration-none text-white">
  46. <div class="card h-100" style="background-color: #541a64;">
  47. <div class="card-body">
  48. <h4 class="card-title">Watching Playlists</h4>
  49. <p class="card-text">All the playlists you're currently watching.</p>
  50. </div>
  51. </div>
  52. </a>
  53. </div>
  54. <div class="col">
  55. <a href="{% url 'library' 'plan-to-watch' %}" class="text-decoration-none text-white">
  56. <div class="card h-100" style="background-color: #641a29;">
  57. <div class="card-body">
  58. <h4 class="card-title">Plan to Watch</h4>
  59. <p class="card-text">Plan to watch a playlist later? Add it here.</p>
  60. </div>
  61. </div>
  62. </a>
  63. </div>
  64. <div class="col">
  65. <a href="{% url 'library' 'yt-mix' %}" class="text-decoration-none text-white">
  66. <div class="card h-100" style="background-color: #bd39a7;">
  67. <div class="card-body">
  68. <h5 class="card-title">Your YouTube Mixes <span class="badge bg-warning">BETA</span> </h5>
  69. <p class="card-text">YouTube creates nice mixes that relate to songs you're currently jamming to. You can import those YT Mixes by going over to Import. Any YouTube mixes you import will all be here.</p>
  70. </div>
  71. </div>
  72. </a>
  73. </div>
  74. <div class="col">
  75. <a href="{% url 'library' 'unavailable-videos' %}" class="text-decoration-none text-white">
  76. <div class="card h-100" style="background-color: #7f8675;">
  77. <div class="card-body">
  78. <h5 class="card-title">Unavailable YouTube Videos</h5>
  79. <p class="card-text">List of videos in your collection that went unavailable on YouTube. Note that all details except the video title will have been deleted once a video goes unavailable on YouTube.</p>
  80. </div>
  81. </div>
  82. </a>
  83. </div>
  84. <!--
  85. <div class="col">
  86. <a href="#" class="text-decoration-none text-white">
  87. <div class="card h-100" style="background-color: #969291;">
  88. <div class="card-body">
  89. <h5 class="card-title">Your UnTube Playlists</h5>
  90. <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>
  91. </div>
  92. </div>
  93. </a>
  94. </div>
  95. -->
  96. <div class="col">
  97. <a href="#" class="text-decoration-none text-white">
  98. <div class="card h-100" style="background-color: #d04623;">
  99. <div class="card-body">
  100. <h5 class="card-title">Open a Random Playlist</h5>
  101. <p class="card-text mt-4">
  102. <form action="{% url 'library' 'random' %}" method="post">
  103. {% csrf_token %}
  104. <select onchange="this.form.submit()" class="form-select w-50 bg-success text-white" name="playlistsType">
  105. <option value="From" selected>From</option>
  106. <option value="All">All</option>
  107. <option value="Favorites">Favorites</option>
  108. <option value="Watching">Watching</option>
  109. <option value="Plan to Watch">Plan to Watch</option>
  110. </select>
  111. </form>
  112. </p>
  113. </div>
  114. </div>
  115. </a>
  116. </div>
  117. </div>
  118. <br>
  119. <div class="card bg-dark text-white">
  120. <div class="card-header">
  121. <div class="d-flex justify-content-center">
  122. <h3><span style="border-bottom: 3px #ffffff dashed;">Your Playlist Tags</span><small class="ms-2"><span class="badge bg-warning text-black-50 rounded-pill">{{ user.playlist_tags.all.count }}</span></small> </h3>
  123. </div>
  124. </div>
  125. <div class="card-body">
  126. <div class="d-flex justify-content-evenly h4">
  127. {% if user.playlist_tags.all %}
  128. <div class="w-75 d-flex justify-content-center flex-wrap">
  129. {% for tag in user.playlist_tags.all %}
  130. <a href="{% url 'tagged_playlists' tag.name %}" style="text-decoration: none" class="me-lg-1 mb-lg-1">
  131. <span class="badge rounded-pill bg-warning bg-gradient text-black-50">{{ tag.name }} <span class="badge bg-dark text-white">{{ tag.playlists.all.count }}</span> </span>
  132. </a>
  133. {% endfor %}
  134. </div>
  135. {% else %}
  136. You haven't created any playlist tags yet.
  137. {% endif %}
  138. </div>
  139. </div>
  140. {% if user.playlist_tags.all %}
  141. <div class="card-footer">
  142. <div class="d-flex justify-content-center">
  143. <h3>
  144. <a href="{% url 'search' %}" class="btn btn-success">Filter Playlists by Tags</a>
  145. </h3>
  146. </div>
  147. </div>
  148. {% endif %}
  149. </div>
  150. {% endblock %}