subscriptions.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {% if current_tag %}
  2. {% set page_title = 'Subscriptions - ' + current_tag %}
  3. {% else %}
  4. {% set page_title = 'Subscriptions' %}
  5. {% endif %}
  6. {% extends "base.html" %}
  7. {% import "common_elements.html" as common_elements %}
  8. {% block style %}
  9. <link href="/youtube.com/static/message_box.css" rel="stylesheet">
  10. <link href="/youtube.com/static/subscription.css" rel="stylesheet">
  11. {% endblock style %}
  12. {% block main %}
  13. <div class="subscriptions-sidebar">
  14. <div class="sidebar-links">
  15. <a class="sidebar-title" href="/youtube.com/subscription_manager" class="sub-manager-link">Subscription Manager</a>
  16. <form class="sidebar-action" method="POST" class="refresh-all">
  17. <input type="submit" value="Check All">
  18. <input type="hidden" name="action" value="refresh">
  19. <input type="hidden" name="type" value="all">
  20. </form>
  21. </div>
  22. <ol class="sidebar-list tags">
  23. {% if current_tag %}
  24. <li class="sidebar-list-item">
  25. <a href="/youtube.com/subscriptions" class="sidebar-item-name">Any tag</a>
  26. </li>
  27. {% endif %}
  28. {% for tag in tags %}
  29. <li class="sidebar-list-item">
  30. {% if tag == current_tag %}
  31. <span class="sidebar-item-name">{{ tag }}</span>
  32. {% else %}
  33. <a href="?tag={{ tag|urlencode }}" class="sidebar-item-name">{{ tag }}</a>
  34. {% endif %}
  35. <form method="POST" class="sidebar-item-refresh">
  36. <input type="submit" value="Check">
  37. <input type="hidden" name="action" value="refresh">
  38. <input type="hidden" name="type" value="tag">
  39. <input type="hidden" name="tag_name" value="{{ tag }}">
  40. </form>
  41. </li>
  42. {% endfor %}
  43. </ol>
  44. <hr>
  45. <ol class="sidebar-list sub-refresh-list">
  46. {% for subscription in subscription_list %}
  47. <li class="sidebar-list-item {{ 'muted' if subscription['muted'] else '' }}">
  48. <a href="{{ subscription['channel_url'] }}" class="sidebar-item-name" title="{{ subscription['channel_name'] }}">{{ subscription['channel_name'] }}</a>
  49. <form method="POST" class="sidebar-item-refresh">
  50. <input type="submit" value="Check">
  51. <input type="hidden" name="action" value="refresh">
  52. <input type="hidden" name="type" value="channel">
  53. <input type="hidden" name="channel_id" value="{{ subscription['channel_id'] }}">
  54. </form>
  55. </li>
  56. {% endfor %}
  57. </ol>
  58. </div>
  59. {% if current_tag %}
  60. <h2 class="current-tag">{{ current_tag }}</h2>
  61. {% endif %}
  62. <div class="video-container">
  63. {% for video_info in videos %}
  64. {{ common_elements.item(video_info) }}
  65. {% endfor %}
  66. </div>
  67. <hr/>
  68. <footer class="pagination-container">
  69. <nav class="pagination-list">
  70. {{ common_elements.page_buttons(num_pages, '/youtube.com/subscriptions', parameters_dictionary) }}
  71. </nav>
  72. </footer>
  73. {% endblock main %}