From: Christopher Allan Webber Date: Sat, 2 Jul 2011 19:39:35 +0000 (-0500) Subject: Merge remote branch 'remotes/jwandborg/feature_362-simple_comments-acts_on_feedback' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2110408f4437a9bd7d4d158139cf869518c46456;p=mediagoblin.git Merge remote branch 'remotes/jwandborg/feature_362-simple_comments-acts_on_feedback' Conflicts: mediagoblin/templates/mediagoblin/user_pages/media.html --- 2110408f4437a9bd7d4d158139cf869518c46456 diff --cc mediagoblin/templates/mediagoblin/user_pages/media.html index 55c8f145,4ed1bd02..e84c9872 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@@ -20,88 -20,76 +20,89 @@@ {% 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 %} +
+ +

+ {{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

- {% for comment in comments %} - {% set comment_author = comment.author() %} - - {% endfor %} - {% include "mediagoblin/utils/pagination.html" %} + {% if request.user %} +
+ {{ wtforms_util.render_field_div(comment_form.comment) }} +
+ +
+
+ {% endif %} + + {% if comments %} + {% for comment in comments %} ++ {% set comment_author = comment.author() %} +
+
+ {% autoescape False %} + {{ comment.content_html }} + {% endautoescape %} +
+ +
+ {% endfor %} + + {% include "mediagoblin/utils/pagination.html" %} +
{% endif %} +
+

Sidebar content here!

+

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

+ edit +

+

+ delete +

+ {% endif %} +

+
{% else %} -

Sorry, no such media found.

+

Sorry, no such media found.

{% endif %} {% endblock %}