diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-11 13:56:02 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-05-11 13:56:02 -0500 |
commit | 34d304441dfab17494de012a7a7e7dc0e4e28305 (patch) | |
tree | 396d75c816dcb96b43a93cbf8ec2745b8f5b3a05 | |
parent | 058226d0d2d877715b263fd441deb01821f1f59a (diff) | |
download | mediagoblin-34d304441dfab17494de012a7a7e7dc0e4e28305.tar.lz mediagoblin-34d304441dfab17494de012a7a7e7dc0e4e28305.tar.xz mediagoblin-34d304441dfab17494de012a7a7e7dc0e4e28305.zip |
Updated "created on" feature to reflect new "hover for real time" tooling
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 8a65e4e9..22bdf7d7 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -147,7 +147,7 @@ {% endif %} </div> <div class="media_sidebar"> - <h3>Added</h3> + <h3>{% trans %}Added{% endtrans %}</h3> <p><span title="{{ media.created.strftime("%I:%M%p %Y-%m-%d") }}"> {%- trans formatted_time=timesince(media.created) -%} {{ formatted_time }} ago @@ -156,11 +156,15 @@ {% if app_config['original_date_visible'] %} {% set original_date = media.media_data.get_original_date() %} - {% if original_date -%} - {% trans date=original_date.strftime("%Y-%m-%d") -%} - <h3>Created on</h3> - <p>{{ date }}</p> - {%- endtrans %} + + {% if original_date %} + <h3>{% trans %}Created{% endtrans %}</h3> + + <p><span title="{{ original_date.strftime("%I:%M%p %Y-%m-%d") }}"> + {%- trans formatted_time=timesince(original_date) -%} + {{ formatted_time }} ago + {%- endtrans -%} + </span></p> {%- endif %} {% endif %} |