aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-08-16 21:48:40 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-08-16 21:48:40 -0700
commit899b088cdcbfea988d79b38116d658096eafdc8b (patch)
tree0fd31949c4619fe2d28c84f5e27bd427f44cc677 /youtube/templates
parente01aa59148ea89ea0d0f03322710cb59c71744db (diff)
downloadyt-local-899b088cdcbfea988d79b38116d658096eafdc8b.tar.lz
yt-local-899b088cdcbfea988d79b38116d658096eafdc8b.tar.xz
yt-local-899b088cdcbfea988d79b38116d658096eafdc8b.zip
Subscriptions: show when video was published
Diffstat (limited to 'youtube/templates')
-rw-r--r--youtube/templates/common_elements.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html
index 49e2fad..b8f5c51 100644
--- a/youtube/templates/common_elements.html
+++ b/youtube/templates/common_elements.html
@@ -26,7 +26,9 @@
<address>{{ info['author'] }}</address>
<span class="views">{{ info['views'] }}</span>
-
+ {% if 'views' is not in(info) and 'published' is in(info) %}
+ <time>{{ info['published'] }}</time>
+ {% endif %}
{% elif info['type'] == 'playlist' %}
<a class="playlist-thumbnail-box" href="{{ info['url'] }}" title="{{ info['title'] }}">
<img class="playlist-thumbnail-img" src="{{ info['thumbnail'] }}">