Compare commits
4 Commits
125c1c5225
...
bcfdff1067
| Author | SHA1 | Date | |
|---|---|---|---|
| bcfdff1067 | |||
| a888e38ae8 | |||
| 2bd51bb1cb | |||
| 655346a7eb |
@@ -41,9 +41,6 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="nojs">
|
|
||||||
<noscript></noscript>
|
|
||||||
</div>
|
|
||||||
<div id="root">
|
<div id="root">
|
||||||
<div class="container menu">
|
<div class="container menu">
|
||||||
<p>
|
<p>
|
||||||
@@ -81,21 +78,26 @@
|
|||||||
<div class="story-text">{{ story.text | safe }}</div>
|
<div class="story-text">{{ story.text | safe }}</div>
|
||||||
{% elif show_comments %}
|
{% elif show_comments %}
|
||||||
{% macro render_comment(comment, level) %}
|
{% macro render_comment(comment, level) %}
|
||||||
<div class="comment{% if level > 0 %} lined{% endif %}">
|
<dt></dt>
|
||||||
|
<dd class="comment{% if level > 0 %} lined{% endif %}">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<p>
|
<p>
|
||||||
{% if comment.author == story.author %}[OP] {% endif %}{{ comment.author or '[Deleted]' }} | <a href="#{{ comment.author }}{{ comment.date }}" id="{{ comment.author }}{{ comment.date }}">{{ comment.date | fromnow }}</a>
|
{% if comment.author == story.author %}[OP] {% endif %}{{ comment.author or '[Deleted]' }} | <a href="#{{ comment.author }}{{ comment.date }}" id="{{ comment.author }}{{ comment.date }}">{{ comment.date | fromnow }}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">{{ (comment.text | safe) if comment.text else '<p>[Empty / deleted comment]</p>' }}</div>
|
<div class="text">{{ (comment.text | safe) if comment.text else '<p>[Empty / deleted comment]</p>' }}</div>
|
||||||
|
{% if comment.comments %}
|
||||||
|
<dl>
|
||||||
{% for reply in comment.comments %}
|
{% for reply in comment.comments %}
|
||||||
{{ render_comment(reply, level + 1) }}
|
{{ render_comment(reply, level + 1) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</dl>
|
||||||
|
{% endif %}
|
||||||
|
</dd>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
<div class="comments">
|
<dl class="comments">
|
||||||
{% for comment in story.comments %}{{ render_comment(comment, 0) }}{% endfor %}
|
{% for comment in story.comments %}{{ render_comment(comment, 0) }}{% endfor %}
|
||||||
</div>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class='dot toggleDot'>
|
<div class='dot toggleDot'>
|
||||||
|
|||||||
@@ -189,6 +189,13 @@ span.source {
|
|||||||
|
|
||||||
.comments {
|
.comments {
|
||||||
margin-left: -1.25rem;
|
margin-left: -1.25rem;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comments dl, .comments dd {
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
|
|||||||
Reference in New Issue
Block a user