Self hosted FLOSS fitness/workout, nutrition and weight tracker
Show notice for empty notices and document lists
Roland Geider6748496ee28e
diff --git a/wger/gym/templates/admin_notes/list.html b/wger/gym/templates/admin_notes/list.htmlindex 1abb5a5a0..4cf2d55df 100644--- a/wger/gym/templates/admin_notes/list.html+++ b/wger/gym/templates/admin_notes/list.html@@ -39,6 +39,10 @@<h4 class="list-group-item-heading">{{ note.timestamp_created }} - {{ note.user|format_username }}</h4><p class="list-group-item-text">{{ note.note }}</p></li>+ {% empty %}+ <li class="list-group-item">+ {% trans "Nothing found" %}+ </li>{% endfor %}</ul>{% endblock %}diff --git a/wger/gym/templates/document/list.html b/wger/gym/templates/document/list.htmlindex 93200aeb3..96c2f002a 100644--- a/wger/gym/templates/document/list.html+++ b/wger/gym/templates/document/list.html@@ -50,6 +50,10 @@<p class="list-group-item-text">{{ document.note }}</p>{% endif %}</li>+ {% empty %}+ <li class="list-group-item">+ {% trans "Nothing found" %}+ </li>{% endfor %}</ul>{% endblock %}