Self hosted FLOSS fitness/workout, nutrition and weight tracker
Re-add warnings if there are no categories in the exercise overview
Roland Geider766ae032b6da
diff --git a/wger/exercises/templates/exercise/overview.html b/wger/exercises/templates/exercise/overview.htmlindex b9a7ec0f6..1d0fc2585 100644--- a/wger/exercises/templates/exercise/overview.html+++ b/wger/exercises/templates/exercise/overview.html@@ -66,6 +66,8 @@ $(document).ready(function() {<li {% if forloop.first %}class="active"{% endif %}><a href="#tab-{{ item.grouper.id }}" id="category-{{ item.grouper.id }}" data-toggle="tab">{% trans item.grouper.name %}</a></li>+ {% empty %}+ <li>{% trans "No categories." %} {% trans "Use link to create one" %}</li>{% endfor %}</ul>@@ -90,6 +92,12 @@ $(document).ready(function() {</div></div></a>+ {% empty %}+ <a href="#" class="list-group-item">+ <div class="col-md-offset-1 col-md-10" >+ {% trans "No exercises in this category. Add or edit an exercise and set its category" %}+ </div>+ </a>{% endfor %}</div></div>