Reordering the uploaded on/by and description sections of media display template
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 25 Jun 2011 19:32:31 +0000 (14:32 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 25 Jun 2011 19:32:31 +0000 (14:32 -0500)
mediagoblin/templates/mediagoblin/user_pages/media.html

index d221f61e6899e0a4bfbdde58a6864f0b217428eb..97ff8e51c0dd8fef358005ce41e657f7e1ef9970 100644 (file)
     </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,