mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Add dates to comments
This commit is contained in:
parent
b48f684c0a
commit
86dd137f75
@ -10,21 +10,32 @@
|
||||
margin: 15px 0;
|
||||
background: #333;
|
||||
|
||||
.author, .msg {
|
||||
.info_strip, .msg {
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.author {
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #444;
|
||||
.info_strip {
|
||||
padding: 0.2em 1em;
|
||||
border-bottom: 1px solid #444;
|
||||
}
|
||||
|
||||
.msg {
|
||||
padding: 1em;
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.author {
|
||||
font-weight: bold;
|
||||
float: left;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.info_strip span {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
color: #bbb;
|
||||
}
|
||||
}
|
||||
|
||||
.comment_form {
|
||||
|
@ -2,8 +2,13 @@
|
||||
<ul class="comments">
|
||||
{% for r in thread.replies %}
|
||||
<li>
|
||||
<a class="author {{ r.author.rank.name }}"
|
||||
href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>
|
||||
<div class="info_strip">
|
||||
<a class="author {{ r.author.rank.name }}"
|
||||
href="{{ url_for('user_profile_page', username=r.author.username) }}">
|
||||
{{ r.author.display_name }}</a>
|
||||
<span>{{ r.created_at | datetime }}</span>
|
||||
<div class="clearboth"></div>
|
||||
</div>
|
||||
<div class="msg">
|
||||
{{ r.comment }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user