From: Christopher Allan Webber Date: Thu, 30 Jun 2011 17:57:31 +0000 (-0500) Subject: Merge remote branch 'remotes/schendje/master' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a86e66b5e06c52d60c98e91da557c489e01b5ca7;p=mediagoblin.git Merge remote branch 'remotes/schendje/master' Conflicts: mediagoblin/templates/mediagoblin/user_pages/media.html --- a86e66b5e06c52d60c98e91da557c489e01b5ca7 diff --cc mediagoblin/templates/mediagoblin/user_pages/media.html index cd0bb764,90c5a231..3cebe2f9 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@@ -16,78 -16,36 +16,87 @@@ # 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" %} +
- -

++

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