From 40c8e6d14610f053daefe84a5f5657336a5cfab3 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 7 Mar 2022 20:58:17 +0700 Subject: [PATCH] standardize template jinja indentation --- .../home/templates/home/channel.html | 60 +++++++++---------- .../home/templates/home/channel_id.html | 4 +- tubearchivist/home/templates/home/home.html | 8 +-- .../home/templates/home/playlist_id.html | 8 +-- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/tubearchivist/home/templates/home/channel.html b/tubearchivist/home/templates/home/channel.html index 56388e5..1be4921 100644 --- a/tubearchivist/home/templates/home/channel.html +++ b/tubearchivist/home/templates/home/channel.html @@ -40,40 +40,40 @@
{% if results %} {% for channel in results %} -
-
- - {{ channel.source.channel_id }}-banner - -
-
-
-
- - channel-thumb - -
-
-

{{ channel.source.channel_name }}

- {% if channel.source.channel_subs >= 1000000 %} -

Subscribers: {{ channel.source.channel_subs|intword }}

- {% else %} -

Subscribers: {{ channel.source.channel_subs|intcomma }}

- {% endif %} -
+
+ -
-
-

Last refreshed: {{ channel.source.channel_last_refresh }}

- {% if channel.source.channel_subscribed %} - - {% else %} - - {% endif %} +
+
+
+ + channel-thumb + +
+
+

{{ channel.source.channel_name }}

+ {% if channel.source.channel_subs >= 1000000 %} +

Subscribers: {{ channel.source.channel_subs|intword }}

+ {% else %} +

Subscribers: {{ channel.source.channel_subs|intcomma }}

+ {% endif %} +
+
+
+
+

Last refreshed: {{ channel.source.channel_last_refresh }}

+ {% if channel.source.channel_subscribed %} + + {% else %} + + {% endif %} +
-
{% endfor %} {% else %}

No channels found...

diff --git a/tubearchivist/home/templates/home/channel_id.html b/tubearchivist/home/templates/home/channel_id.html index 5f79de9..1198a15 100644 --- a/tubearchivist/home/templates/home/channel_id.html +++ b/tubearchivist/home/templates/home/channel_id.html @@ -111,9 +111,9 @@
video-thumb {% if video.source.player.progress %} -
+
{% else %} -
+
{% endif %}
diff --git a/tubearchivist/home/templates/home/home.html b/tubearchivist/home/templates/home/home.html index 7e41ba0..042ceed 100644 --- a/tubearchivist/home/templates/home/home.html +++ b/tubearchivist/home/templates/home/home.html @@ -14,9 +14,9 @@
video-thumb {% if video.player.progress %} -
+
{% else %} -
+
{% endif %}
@@ -90,9 +90,9 @@
video-thumb {% if video.source.player.progress %} -
+
{% else %} -
+
{% endif %}
diff --git a/tubearchivist/home/templates/home/playlist_id.html b/tubearchivist/home/templates/home/playlist_id.html index b022971..635bdca 100644 --- a/tubearchivist/home/templates/home/playlist_id.html +++ b/tubearchivist/home/templates/home/playlist_id.html @@ -49,8 +49,8 @@
{% if max_hits %} -

Total Videos archived: {{ max_hits }}/{{ playlist_info.playlist_entries|length }}

-

Watched:

+

Total Videos archived: {{ max_hits }}/{{ playlist_info.playlist_entries|length }}

+

Watched:

{% endif %}
@@ -92,9 +92,9 @@
video-thumb {% if video.source.player.progress %} -
+
{% else %} -
+
{% endif %}