Style comments (first draft only)
This commit is contained in:
parent
a86e66b5e0
commit
270dca58af
@ -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 {
|
||||
|
@ -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">—
|
||||
<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" %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user