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

View file

@ -401,3 +401,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""

View file

@ -388,3 +388,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""

View file

@ -397,3 +397,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""

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ę"

View file

@ -381,3 +381,6 @@ msgstr ""
msgid "Save settings"
msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""

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 %}