diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-11 23:11:15 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-11 23:11:15 +0100 |
| commit | e0e6f3392db508784be95a88b428d3bf7ad048cd (patch) | |
| tree | 376c43a4f5d8a1de0f53dd6883df501c99b5601f /app/templates | |
| parent | b1c349cc3558b4642a700a489482ff95b038ce56 (diff) | |
| download | cheatdb-e0e6f3392db508784be95a88b428d3bf7ad048cd.tar.xz | |
Improve comment CSS
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/macros/threads.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 96e1107..bd6fa44 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -1,15 +1,18 @@ {% macro render_thread(thread, current_user) -%} - <ul> + <ul class="comments"> {% for r in thread.replies %} <li> - <<a href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a>> - {{ r.comment }} + <a class="author {{ r.author.rank.name }}" + href="{{ url_for('user_profile_page', username=r.author.username) }}">{{ r.author.display_name }}</a> + <div class="msg"> + {{ r.comment }} + </div> </li> {% endfor %} </ul> {% if current_user.is_authenticated %} - <form method="post" action="{{ url_for('thread_page', id=thread.id)}}"> + <form method="post" action="{{ url_for('thread_page', id=thread.id)}}" class="comment_form"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <textarea required maxlength=500 name="comment"></textarea><br /> <input type="submit" value="Comment" /> @@ -23,5 +26,4 @@ <li><a href="{{ url_for('thread_page', id=t.id) }}">{{ t.title }}</a> by {{ t.author.display_name }}</li> {% endfor %} </ul> - {% endmacro %} |
