From aa7d1a2fb6148f6e899d7f8756e6c481dab3f532 Mon Sep 17 00:00:00 2001
From: Joar Wandborg
Date: Wed, 29 Jun 2011 01:21:46 +0200
Subject: [PATCH] Issue #362 - Updated media.html with things necessary for the
simple comment feature
* `media.html` now imports `wtforms.html` for use in comment form rendering
* `media.html` now outputs a commenting form if `request.user` evals to `True`
* `media.html` now outputs `MediaComments` if `comments` evals to `True`
* `media.html` now includes `pagination.html` to handle comment pagination
---
.../mediagoblin/user_pages/media.html | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 97ff8e51..cd0bb764 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -16,6 +16,9 @@
# 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 ;) #}
@@ -42,6 +45,49 @@
user= media.uploader().username,
media= media._id) }}">Edit
{% endif %}
+ {% if request.user %}
+
+ {% 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 %}
{% else %}
Sorry, no such media found.
{% endif %}