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; 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 */ /* media galleries */
ul.media_thumbnail { ul.media_thumbnail {

View File

@ -68,13 +68,18 @@
<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_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', <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
user = comment['author']['username']) }}"> user = comment['author']['username']) }}">
{{ comment['author']['username'] }} {{ comment['author']['username'] }}</a> at
</a> <!--</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,
@ -83,11 +88,6 @@
comment.created.minute) }} comment.created.minute) }}
</a> </a>
</div> </div>
<div class="comment_content">
{% autoescape False %}
{{ comment.content_html }}
{% endautoescape %}
</div>
</div> </div>
{% endfor %} {% endfor %}
{% include "mediagoblin/utils/pagination.html" %} {% include "mediagoblin/utils/pagination.html" %}