Self hosted FLOSS fitness/workout, nutrition and weight tracker
Simplify the goal calories colors
Roland Geidercc82edbd4fc3
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.htmlindex ed609aebe..8b1ea1f47 100644--- a/wger/nutrition/templates/plan/view.html+++ b/wger/nutrition/templates/plan/view.html@@ -317,7 +317,7 @@ function wgerCustomModalInit(){% if is_owner and owner_user.userprofile.calories and plan.has_goal_calories %}{% with total=plan.get_calories_approximation %}- <tr style="background-color:{% if total == 1 %}#8ae234;{% elif total == 2 %}#fce94f;{% elif total == 3 %}#fcaf3e;{% elif total > 3 %}#ef2929;{% endif %}">+ <tr class="table-{% if total == 1 %}default{% elif total == 2 %}success{% elif total == 3 %}warning{% elif total > 3 %}danger{% endif %}"><td>{% trans "Goal" %}</td><td class="align-right"><strong>{{owner_user.userprofile.calories}} {% trans "kcal" %}</strong></td>diff --git a/wger/weight/static/js/weight.js b/wger/weight/static/js/weight.jsindex 1d4d00c08..56d9ac3d4 100644--- a/wger/weight/static/js/weight.js+++ b/wger/weight/static/js/weight.js@@ -49,7 +49,7 @@ $(document).ready(function () {x_accessor: 'date',y_accessor: 'weight',min_y_from_data: true,- colors: ['#3465a4']+ colors: ['#266dd3']};username = $('#current-username').data('currentUsername');