{% block mediagoblin_content %}
{# temporarily, an "image gallery" that isn't one really ;) #}
{% if media %}
-
- <h1>Media details for {{media.title}}</h1>
- <div>
+
+ <div class="grid_8 alpha media_image">
<img src="{{ request.app.public_store.file_url(
media.media_files.main) }}" />
-
- <br/>Uploaded: {{ media.created}}
- <br/>Description: {{media.description}}
+ <h1>Media details for {{media.title}}</h1>
+ <p>
+ <br/>Uploaded: {{ media.created}}
+ <br/>Description: {{media.description}}
+ </p>
+ </div>
+ <div class="grid_4 omega sidebar">
+ <p>Uploaded: {{ media.created}}</p>
</div>
{% else %}
<p>Sorry, no such media found.<p/>
{# temporarily, an "image gallery" that isn't one really ;) #}
{% if media %}
- <h1>
- {{media.title}}
- </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>
- {% endautoescape %}
- {% if media['uploader'] == request.user['_id'] %}
- <p><a href="{{ request.urlgen('mediagoblin.edit.edit_media',
- user= media.uploader().username,
- media= media._id) }}">Edit</a></p>
- {% endif %}
+ <div class="grid_8 alpha media_image">
+ <img class="media_image" src="{{ request.app.public_store.file_url(
+ media.media_files.main) }}" />
+ <h2>
+ {{media.title}}
+ </h2>
+ <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>
+ {% endautoescape %}
+ {% if media['uploader'] == request.user['_id'] %}
+ <p><a href="{{ request.urlgen('mediagoblin.edit.edit_media',
+ user= media.uploader().username,
+ media= media._id) }}">Edit</a></p>
+ {% endif %}
+ </div>
+ <div class="grid_4 omega media_sidebar">
+ <p>This is a sidebar! Yay!</p>
+ </div>
{% else %}
<p>Sorry, no such media found.<p/>
{% endif %}