{# # 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 %} {% from "mediagoblin/utils/pagination.html" import render_pagination %} {% block mediagoblin_content %} {% if media %}

{{media.title}}

{% autoescape False %}

{{ media.description_html }}

{% endautoescape %}

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


Comments

{% if request.user %}
{{ wtforms_util.render_field_div(comment_form.comment_content) }}
{% endif %} {% if comments %} {% for comment in comments %} {% set comment_author = comment.author() %} {% if pagination.active_id == comment._id %}
{% else %} {% endfor %} {{ render_pagination(request, pagination, request.urlgen('mediagoblin.user_pages.media_home', user = media.uploader().username, media = media._id)) }}
{% endif %}
{% include "mediagoblin/utils/prev_next.html" %}

Sidebar content here!

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

edit

delete

{% endif %}

{% if media.tags %} {% include "mediagoblin/utils/tags.html" %} {% endif %}
{% else %}

Sorry, no such media found.

{% endif %} {% endblock %}