{# # GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011 Free Software Foundation, Inc # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} {% extends "mediagoblin/base.html" %} {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_content %} {# temporarily, an "image gallery" that isn't one really ;) #} {% if media %}

{{media.title}}

Uploaded on {{ "%4d-%02d-%02d"|format(media.created.year, media.created.month, media.created.day) }} by {{- media.uploader().username }}

{% autoescape False %}

{{ media.description_html }}

{% endautoescape %} {% if media['uploader'] == request.user['_id'] %}

Edit

{% endif %} {% if request.user %}

Post a comment!

{{ wtforms_util.render_field_div(comment_form.comment) }}
{% endif %} {# {{ wtforms_util.render_textarea_div(submit_form.description) }} {{ wtforms_util.render_field_div(submit_form.file) }} #} {% if comments %}

Comments

{% for comment in comments %} {% endfor %} {% include "mediagoblin/utils/pagination.html" %}
{% endif %}

This is a sidebar! Yay!

{% else %}

Sorry, no such media found.

{% endif %} {% endblock %}