diff options
author | Jesús <heckyel@hyperbola.info> | 2020-12-30 16:17:48 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-30 16:52:26 -0500 |
commit | 1f4d7cc9586bc0fbb19936efe5dad32109dfb952 (patch) | |
tree | ec25c1c4f7fc36b2d83b332a7bdad011b84126d3 /youtube/templates | |
parent | 056c3be3f2ab9a19d8b2c38396826aaad9d4081d (diff) | |
download | yt-local-1f4d7cc9586bc0fbb19936efe5dad32109dfb952.tar.lz yt-local-1f4d7cc9586bc0fbb19936efe5dad32109dfb952.tar.xz yt-local-1f4d7cc9586bc0fbb19936efe5dad32109dfb952.zip |
General theme: fix syntax W3C markup and add improve 'Published' date
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/comments.html | 4 | ||||
-rw-r--r-- | youtube/templates/watch.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index a128b44..ceb31b8 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -12,7 +12,7 @@ <a class="author" href="{{ comment['author_url'] }}" title="{{ comment['author'] }}">{{ comment['author'] }}</a> </address> <a class="permalink" href="{{ comment['permalink'] }}" title="permalink"> - <time datetime="2012-01-14T15:23:44+02:00">{{ comment['time_published'] }}</time> + <span>{{ comment['time_published'] }}</span> </a> {% if timestamp_links %} @@ -24,7 +24,7 @@ <span class="comment-likes">{{ comment['likes_text'] if comment['like_count'] else ''}}</span> <div class="button-row"> {% if settings.use_comments_js and comment['reply_count'] %} - <details class="replies" src="{{ comment['replies_url'] }}"> + <details class="replies" data-src="{{ comment['replies_url'] }}"> <summary>{{ comment['view_replies_text'] }}</summary> <a href="{{ comment['replies_url'] }}" class="replies-open-new-tab" target="_blank">Open in new tab</a> <div class="comment_page">loading..</div> diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index 1b47e57..70f5692 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -71,7 +71,7 @@ <address class="v-uploaded">Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address> <span class="v-views">{{ view_count }} views</span> - <time class="v-published" datetime="$upload_date">Published on {{ time_published }}</time> + <time class="v-published" datetime="{{ time_published_utc }}">Published on {{ time_published }}</time> <span class="v-likes-dislikes">{{ like_count }} likes {{ dislike_count }} dislikes</span> <div class="external-player-controls"> |