Reorganize media.html, comment part

This commit is contained in:
Jef van Schendel 2011-07-01 17:28:55 +02:00
parent 13b4cbf014
commit c13ce79abb

View File

@ -58,42 +58,38 @@
</div> </div>
</form> </form>
{% endif %} {% endif %}
{# {#
{{ wtforms_util.render_textarea_div(submit_form.description) }} {{ wtforms_util.render_textarea_div(submit_form.description) }}
{{ wtforms_util.render_field_div(submit_form.file) }} {{ wtforms_util.render_field_div(submit_form.file) }}
#} #}
{% if comments %} {% if comments %}
<h3>Comments</h3> <h3>Comments</h3>
{% for comment in comments %} {% for comment in comments %}
<div class="comment_wrapper" id="comment-{{ comment['_id'] }}"> <div class="comment_wrapper" id="comment-{{ comment['_id'] }}">
<div class="comment_content"> <div class="comment_content">
{% autoescape False %} {% autoescape False %}
{{ comment.content_html }} {{ comment.content_html }}
{% endautoescape %} {% endautoescape %}
</div> </div>
<div class="comment_author">&mdash; <div class="comment_author">&mdash;
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home', <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
user = comment['author']['username']) }}"> user = comment['author']['username']) }}">
{{ comment['author']['username'] }}</a> at {{ comment['author']['username'] }}</a> at
<!--</div> <!--</div>
<div class="comment_datetime">--> <div class="comment_datetime">-->
<a href="#comment-{{ comment['_id'] }}"> <a href="#comment-{{ comment['_id'] }}">
{{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year, {{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year,
comment.created.month, comment.created.month,
comment.created.day, comment.created.day,
comment.created.hour, comment.created.hour,
comment.created.minute) }} comment.created.minute) }}
</a> </a>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
{% include "mediagoblin/utils/pagination.html" %} {% include "mediagoblin/utils/pagination.html" %}
</div> </div>
{% endif %} {% endif %}
<div class="grid_4 omega media_sidebar"> <div class="grid_4 omega media_sidebar">
<p>This is a sidebar! Yay!</p> <p>This is a sidebar! Yay!</p>
</div> </div>