diff options
Diffstat (limited to 'youtube/templates/channel.html')
-rw-r--r-- | youtube/templates/channel.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index 48041a0..d99af9e 100644 --- a/youtube/templates/channel.html +++ b/youtube/templates/channel.html @@ -116,8 +116,14 @@ {% if current_tab == 'about' %} <div class="channel-info"> <ul> - {% for stat in stats %} - <li>{{ stat }}</li> + {% for (before_text, stat, after_text) in [ + ('Joined ', date_joined, ''), + ('', view_count|commatize, ' views'), + ('', approx_subscriber_count, ' subscribers'), + ] %} + {% if stat %} + <li>{{ before_text + stat|string + after_text }}</li> + {% endif %} {% endfor %} </ul> <hr> |