neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
7f7e53c041558406f2efbdb51a1283a875406265
parent
d7586261349c4a54da61693894dab942e3dc8fcb
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-10-13 10:18
wrap comment replies in <details>

Diffstat

M static/style.css 5 +++++
M templates/_comment.html 11 ++++++++---

2 files changed, 13 insertions, 3 deletions


diff --git a/static/style.css b/static/style.css

@@ -200,6 +200,11 @@ input:focus {
  200   200 	padding: 1em 0;
  201   201 	border-bottom: 1px solid #ddd;
  202   202 }
   -1   203 .comments-replies {
   -1   204 	color: #777;
   -1   205 	font-size: x-small;
   -1   206 	cursor: pointer;
   -1   207 }
  203   208 
  204   209 .posts-sort a,
  205   210 .comments-sort a {

diff --git a/templates/_comment.html b/templates/_comment.html

@@ -7,6 +7,11 @@
    7     7 	</span>
    8     8 </header>
    9     9 {{ comment.data.body_html|safe }}
   10    -1 {% with comments=comment.data.replies, parent=comment %}
   11    -1 	{% include '_comments.html' %}
   12    -1 {% endwith %}
   -1    10 {% if comment.data.replies %}
   -1    11 	<details>
   -1    12 		<summary class="comments-replies">replies</summary>
   -1    13 		{% with comments=comment.data.replies, parent=comment %}
   -1    14 			{% include '_comments.html' %}
   -1    15 		{% endwith %}
   -1    16 	</details>
   -1    17 {% endif %}