Self hosted FLOSS fitness/workout, nutrition and weight tracker
No need to check for existence of current workout
Roland Geiderb443be7e92b2
diff --git a/wger/core/templates/index.html b/wger/core/templates/index.htmlindex 1a166603f..0afdac1c3 100644--- a/wger/core/templates/index.html+++ b/wger/core/templates/index.html@@ -22,24 +22,12 @@<h4 class="modal-title">{% trans 'Add log to day' %}</h4></div><div class="modal-body">- {% if current_workout %}<p>{% blocktrans %}Click to add weight logs to a trainingday in your current workout:{% endblocktrans %} <strong>{{current_workout}}</strong></p>{% for day in current_workout.day_set.all %}<a href="{% url 'manager:day:log' day.pk %}" class="btn btn-block btn-default">{{day.description}}</a>{% endfor %}-- {% else %}- <p>- <em>{% trans "No workouts found." %}</em>- </p>- <p>- <a href="{% url 'manager:workout:add' %}" class="btn btn-success btn-sm">- {% trans "Add workout" %}- </a>- </p>- {% endif %}</div></div></div>