{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% block mediagoblin_content %}
- {# temporarily, an "image gallery" that isn't one really ;) #}
{% if media %}
<div class="grid_8 alpha media_image">
- <img src="{{ request.app.public_store.file_url(
- media.media_files.main) }}" />
- <h1>
- {{media.title}}
- </h1>
+ {% if media.media_files.medium %}
+ <img class="media_image" src="{{ request.app.public_store.file_url(
+ media.media_files.medium) }}" />
+ {% else %}
+ <img class="media_image" src="{{ request.app.public_store.file_url(
+ media.media_files.main) }}" />
+ {% endif %}
++
+ <h2>
+ {{media.title}}
+ </h2>
+
+ {% autoescape False %}
+ <p>{{ media.description_html }}</p>
+ {% endautoescape %}
+
<p>
- Uploaded on
+ — uploaded on
{{ "%4d-%02d-%02d"|format(media.created.year,
media.created.month, media.created.day) }}
by