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