diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-25 14:32:31 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-25 14:32:31 -0500 |
commit | e1d9e1d139a81d4d7592d349e3594d3a9d21c285 (patch) | |
tree | f4fd725c55ebb4b053319fccc985113340ceade7 | |
parent | d4a7a03ce731dcfc42fabae2802b2963591c1e70 (diff) | |
download | mediagoblin-e1d9e1d139a81d4d7592d349e3594d3a9d21c285.tar.lz mediagoblin-e1d9e1d139a81d4d7592d349e3594d3a9d21c285.tar.xz mediagoblin-e1d9e1d139a81d4d7592d349e3594d3a9d21c285.zip |
Reordering the uploaded on/by and description sections of media display template
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index d221f61e..97ff8e51 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -25,16 +25,18 @@ </h1> <img class="media_image" src="{{ request.app.public_store.file_url( media.media_files.main) }}" /> + <p> + Uploaded on + {{ "%4d-%02d-%02d"|format(media.created.year, + media.created.month, media.created.day) }} + by + <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', + user= media.uploader().username) }}"> + {{- media.uploader().username }}</a> + </p> {% autoescape False %} - <p>{{ media.description_html }}</p> + <p>{{ media.description_html }}</p> {% endautoescape %} - <p>Uploaded on - {{ "%4d-%02d-%02d"|format(media.created.year, - media.created.month, media.created.day) }} - by - <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', - user= media.uploader().username) }}"> - {{- media.uploader().username }}</a></p> {% if media['uploader'] == request.user['_id'] %} <p><a href="{{ request.urlgen('mediagoblin.edit.edit_media', user= media.uploader().username, |