diff options
Diffstat (limited to 'youtube/templates/comments.html')
| -rw-r--r-- | youtube/templates/comments.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index 7d0ef85..dac0d23 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -3,13 +3,13 @@ {% macro render_comment(comment, include_avatar, timestamp_links=False) %} <div class="comment-container"> <div class="comment"> - <a class="author-avatar" href="{{ comment['author_url'] }}" title="{{ comment['author'] }}"> + <a class="author-avatar" href="{{ comment['author_url'] or '#' }}" title="{{ comment['author'] }}"> {% if include_avatar %} <img class="author-avatar-img" alt="{{ comment['author'] }}" src="{{ comment['author_avatar'] }}"> {% endif %} </a> <address class="author-name"> - <a class="author" href="{{ comment['author_url'] }}" title="{{ comment['author'] }}">{{ comment['author'] }}</a> + <a class="author" href="{{ comment['author_url'] or '#' }}" title="{{ comment['author'] }}">{{ comment['author'] }}</a> </address> <a class="permalink" href="{{ comment['permalink'] }}" title="permalink"> <span>{{ comment['time_published'] }}</span> @@ -21,7 +21,7 @@ <span class="comment-text">{{ common_elements.text_runs(comment['text']) }}</span> {% endif %} - <span class="comment-likes">{{ comment['likes_text'] if comment['like_count'] else ''}}</span> + <span class="comment-likes">{{ comment['likes_text'] if comment['approx_like_count'] else ''}}</span> <div class="button-row"> {% if comment['reply_count'] %} {% if settings.use_comments_js and comment['replies_url'] %} @@ -58,7 +58,7 @@ {% endfor %} </div> {% if 'more_comments_url' is in comments_info %} - <a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">More comments</a> + <a class="page-button more-comments" href="{{ comments_info['more_comments_url'] }}">{{ _('More comments') }}</a> {% endif %} {% endif %} |
