Style comments (first draft only)

This commit is contained in:
Jef van Schendel 2011-07-01 15:41:44 +02:00
parent a86e66b5e0
commit 270dca58af
2 changed files with 24 additions and 10 deletions

View File

@ -223,6 +223,20 @@ a.mediagoblin_logo:hover {
width:280px;
}
/* comments */
.comment_author {
margin-bottom:40px;
font-size:14px;
text-align:right;
border-top:1px solid #393939;
padding-top:4px;
}
.comment_content p {
margin-bottom:4px;
}
/* media galleries */
ul.media_thumbnail {

View File

@ -68,13 +68,18 @@
<h3>Comments</h3>
{% for comment in comments %}
<div class="comment_wrapper" id="comment-{{ comment['_id'] }}">
<div class="comment_author">By:
<div class="comment_content">
{% autoescape False %}
{{ comment.content_html }}
{% endautoescape %}
</div>
<div class="comment_author">&mdash;
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
user = comment['author']['username']) }}">
{{ comment['author']['username'] }}
</a>
</div>
<div class="comment_datetime">
{{ comment['author']['username'] }}</a> at
<!--</div>
<div class="comment_datetime">-->
<a href="#comment-{{ comment['_id'] }}">
{{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year,
comment.created.month,
@ -83,11 +88,6 @@
comment.created.minute) }}
</a>
</div>
<div class="comment_content">
{% autoescape False %}
{{ comment.content_html }}
{% endautoescape %}
</div>
</div>
{% endfor %}
{% include "mediagoblin/utils/pagination.html" %}