Show a message telling you that there are no comments

Fix #142
This commit is contained in:
Bat
2018-07-27 20:34:23 +02:00
parent fb2f4e9bcd
commit b32015fa7d
6 changed files with 24 additions and 5 deletions
+3
View File
@@ -401,3 +401,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
+3
View File
@@ -388,3 +388,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
+3
View File
@@ -397,3 +397,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
+3
View File
@@ -406,5 +406,8 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
#~ msgid "Logowanie"
#~ msgstr "Zaloguj się"
+3
View File
@@ -381,3 +381,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
+9 -5
View File
@@ -70,11 +70,15 @@
</form>
{% endif %}
<div class="list">
{% for comment in comments %}
{{ macros::comment(comm=comment) }}
{% endfor %}
</div>
{% if comments | length > 0 %}
<div class="list">
{% for comment in comments %}
{{ macros::comment(comm=comment) }}
{% endfor %}
</div>
{% else %}
<p class="center">{{ "No comments yet. Be the first to react!" | _ }}</p>
{% endif %}
</div>
</div>
{% endblock content %}