diff options
Diffstat (limited to 'mediagoblin/templates/mediagoblin/user_pages/media.html')
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index b77c12b9..58b9cdce 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -125,7 +125,9 @@ comment=comment.id, user=media.get_uploader.username, media=media.slug_or_id) }}#comment"> - {{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}} + <span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'> + {{ timesince(comment.created) }} + </span> </a>: </div> <div class="comment_content"> @@ -141,9 +143,9 @@ {% endif %} </div> <div class="media_sidebar"> - {% trans date=media.created.strftime("%Y-%m-%d") -%} + {% trans date=media.created.strftime("%Y-%m-%d"), formatted_time=timesince(media.created) -%} <h3>Added on</h3> - <p>{{ date }}</p> + <p><span title="{{ date }}">{{ formatted_time }}</span></p> {%- endtrans %} {% if media.tags %} {% include "mediagoblin/utils/tags.html" %} |