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" msgid "Save settings"
msgstr "" msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""

View File

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

View File

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

View File

@ -406,5 +406,8 @@ msgstr ""
msgid "Save settings" msgid "Save settings"
msgstr "" msgstr ""
msgid "No comments yet. Be the first to react!"
msgstr ""
#~ msgid "Logowanie" #~ msgid "Logowanie"
#~ msgstr "Zaloguj się" #~ msgstr "Zaloguj się"

View File

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

View File

@ -70,11 +70,15 @@
</form> </form>
{% endif %} {% endif %}
<div class="list"> {% if comments | length > 0 %}
{% for comment in comments %} <div class="list">
{{ macros::comment(comm=comment) }} {% for comment in comments %}
{% endfor %} {{ macros::comment(comm=comment) }}
</div> {% endfor %}
</div>
{% else %}
<p class="center">{{ "No comments yet. Be the first to react!" | _ }}</p>
{% endif %}
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}