aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-01-22 06:29:42 +0800
committerAstound <kirito@disroot.org>2024-01-22 06:29:42 +0800
commit5f3b90ad45993f99bf2813ef2fefaa3a59a2694f (patch)
treea3ae5002a58935d691148bbb85d6d509a9d7c58c /youtube/templates
parent2463af768579e3bc52f39cfdd55b163d797289bc (diff)
downloadyt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.tar.lz
yt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.tar.xz
yt-local-5f3b90ad45993f99bf2813ef2fefaa3a59a2694f.zip
Fix channel about tab
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/channel.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html
index 8d2249c..c43f488 100644
--- a/youtube/templates/channel.html
+++ b/youtube/templates/channel.html
@@ -51,8 +51,11 @@
<ul>
{% for (before_text, stat, after_text) in [
('Joined ', date_joined, ''),
- ('', view_count|commatize, ' views'),
+ ('', approx_view_count, ' views'),
('', approx_subscriber_count, ' subscribers'),
+ ('', approx_video_count, ' videos'),
+ ('Country: ', country, ''),
+ ('Canonical Url: ', canonical_url, ''),
] %}
{% if stat %}
<li>{{ before_text + stat|string + after_text }}</li>
@@ -65,7 +68,11 @@
<hr>
<ul>
{% for text, url in links %}
- <li><a href="{{ url }}">{{ text }}</a></li>
+ {% if url %}
+ <li><a href="{{ url }}">{{ text }}</a></li>
+ {% else %}
+ <li>{{ text }}</li>
+ {% endif %}
{% endfor %}
</ul>
</div>