Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't render card footer if there are no nutritional plans

Roland Geider4b66ae818106
diff --git a/wger/core/templates/index.html b/wger/core/templates/index.html
index af72d2d2c..08eee5848 100644
--- a/wger/core/templates/index.html
+++ b/wger/core/templates/index.html
@@ -142,15 +142,15 @@ day in your current workout:{% endblocktrans %} <strong>{{current_workout}}</str
</table>
</div>
</div>
+ {% if not plan %}
<div class="card-footer">
- {% if not plan %}
<p>
<a href="{% url 'nutrition:plan:add' %}" class="btn btn-sm btn-block btn-success">
{% trans "No nutrition plans." %} {% trans "Add one now." %}
</a>
</p>
- {% endif %}
</div>
+ {% endif %}
</div>