Self hosted FLOSS fitness/workout, nutrition and weight tracker
Some tweaks to the appearance
Roland Geider79bbc5f5279e
diff --git a/wger/exercises/templates/overview.html b/wger/exercises/templates/overview.htmlindex b562c0665..79bb1b727 100644--- a/wger/exercises/templates/overview.html+++ b/wger/exercises/templates/overview.html@@ -99,9 +99,9 @@ $(document).ready(function() {{% empty %}<tr><td>- <div class="box warning">+ <p>{% trans "No exercises in this category. Add or edit an exercise and set its category" %}- </div>+ </p></td></tr>{% endfor %}diff --git a/wger/manager/static/css/bootstrap-custom.css b/wger/manager/static/css/bootstrap-custom.cssindex a74eb076e..36206798d 100644--- a/wger/manager/static/css/bootstrap-custom.css+++ b/wger/manager/static/css/bootstrap-custom.css@@ -34,6 +34,13 @@}+.alert a:hover{+ color: white;+ text-decoration: underline;+ text-shadow: none;+}++.label, .badge {font-weight: normal;}\ No newline at end of filediff --git a/wger/manager/templates/day/log.html b/wger/manager/templates/day/log.htmlindex 0e39b4df4..e725b987a 100644--- a/wger/manager/templates/day/log.html+++ b/wger/manager/templates/day/log.html@@ -69,14 +69,14 @@ $(document).ready(function () {{% empty %}<tr><td>- <div class="box warning" id="weight-box-warning">+ <p>{% trans "Add exercises to this training day before adding a log." %}<a href="{% url 'workout-view' day.training.id %}">{% trans "Back to workout" %}</a>- </div>+ </p></td></tr>{% endfor %}diff --git a/wger/manager/templates/index.html b/wger/manager/templates/index.htmlindex 99b9acd5d..0663dbaf6 100644--- a/wger/manager/templates/index.html+++ b/wger/manager/templates/index.html@@ -44,9 +44,11 @@{% endif %}{% else %}- <div class="box warning">- {% trans "No workouts found." %} {% trans "Use link to add one." %}- </div>+ <p>+ <a href="{% url 'wger.manager.views.workout.add' %}" class="btn btn-block">+ {% trans "No workouts found." %} {% trans "Add one now." %}+ </a>+ </p>{% endif %}</div></div>@@ -84,9 +86,11 @@</ul>{% else %}- <div class="box warning">+ <p>+ <a href="{% url 'wger.nutrition.views.plan.add' %}" class="btn btn-block">{% trans "No nutrition plans." %} {% trans "Use link to add one." %}- </div>+ </a>+ </p>{% endif %}{% if weight %}<p>diff --git a/wger/manager/templates/tags/render_day.html b/wger/manager/templates/tags/render_day.htmlindex 948796a43..61fac3400 100644--- a/wger/manager/templates/tags/render_day.html+++ b/wger/manager/templates/tags/render_day.html@@ -117,13 +117,11 @@ $(document).ready(function() {{% if not forloop.last %} – {% endif %}</span>{% empty %}- <div class="box warning">- {% trans "This exercise has no repetitions." %}<a href="{% url 'set-edit' set.id %}"- class="modal-dialog">+ class="modal-dialog btn btn-block">+ {% trans "This exercise has no repetitions." %}{% trans "Edit them now."%}</a>- </div>{% endfor %} <!--for setting in exercise--></span>@@ -143,12 +141,12 @@ $(document).ready(function() {{% empty %}<tr><td colspan="2">- <div class="box warning">- {% trans "No exercises selected for this day." %}<a href="{% url 'set-add' day.id %}"- class="modal-dialog">{% trans "Add one now." %}+ class="modal-dialog btn btn-block">+ {% trans "No exercises selected for this day." %}+ {% trans "Add one now." %}</a>- </div>+{% endfor %} <!--for set in day--></td></tr>diff --git a/wger/manager/templates/template.html b/wger/manager/templates/template.htmlindex 16e6d3768..10154f9c2 100644--- a/wger/manager/templates/template.html+++ b/wger/manager/templates/template.html@@ -137,10 +137,10 @@<div id="current-language" data-current-language="{{language.short_name}}"></div>{% if not user.is_authenticated or user.get_profile.is_temporary %}- <div class="box info" style="padding:0.6em; margin: 0em 0em 1em 0em;text-align:center;font-size:95%;">+ <div class="abox ainfo" style="padding:0.6em; margin: 0em 0em 1em 0em;text-align:center;font-size:95%;">{% trans "You are using a guest account, data entered will be deleted after a week."%}{% if not has_demo_data %}- <a href="{% url 'demo-entries' %}" rel="nofollow">{% trans "Create some demo entries." %}</a>+ <a href="{% url 'demo-entries' %}" rel="nofollow" class="btn btn-success btn-small">{% trans "Create some demo entries" %} »</a>{% endif %}</div>{% endif %}diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.htmlindex 9b3833f28..6d1014014 100644--- a/wger/manager/templates/workout/log.html+++ b/wger/manager/templates/workout/log.html@@ -41,7 +41,7 @@ function custom_modal_init()</p>{% for exercise, date_list in exercise_log.items %}- <div class="box info" style="text-align: center;">+ <div class="alert alert-info" style="text-align: center;margin-top:1em;"><a href="{{ exercise.get_absolute_url }}">{{ exercise.name }}</a></div>diff --git a/wger/manager/templates/workout/overview.html b/wger/manager/templates/workout/overview.htmlindex 8141e8485..26048224d 100644--- a/wger/manager/templates/workout/overview.html+++ b/wger/manager/templates/workout/overview.html@@ -35,9 +35,11 @@</tbody></table>{% else %}- <div class="box warning">- {% trans "No workouts found." %} {% trans "Use link to add one." %}- </div>+ <p>+ <a href="{% url 'wger.manager.views.workout.add' %}" class="btn btn-block">+ {% trans "No workouts found." %} {% trans "Add one now." %}+ </a>+ </p>{% endif %}diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.htmlindex 31ac0bf5b..0f36e8cdf 100644--- a/wger/manager/templates/workout/view.html+++ b/wger/manager/templates/workout/view.html@@ -47,12 +47,12 @@ $(document).ready(function() {{% render_day day %}</div>{% empty %}-<div class="box warning">+ <p>+ <a href="{% url 'day-add' workout.id %}" class="modal-dialog btn btn-block">{% trans "No days for this workout." %}- <a href="{% url 'day-add' workout.id %}" class="modal-dialog">{% trans "Add training day." %}</a>-</div>+ </p>{% endfor %}diff --git a/wger/nutrition/templates/ingredient/overview.html b/wger/nutrition/templates/ingredient/overview.htmlindex 04a6e1e91..05bf67317 100644--- a/wger/nutrition/templates/ingredient/overview.html+++ b/wger/nutrition/templates/ingredient/overview.html@@ -39,9 +39,11 @@ $(document).ready(function() {{% endfor %}</ul>{% else %}- <div class="box warning">- {% trans "No ingredients." %} {% trans "Use link to add one." %}- </div>+ <p>+ <a href="{% url 'ingredient-add' %}" class="btn btn-block">+ {% trans "No ingredients." %} {% trans "Add one now." %}+ </a>+ </p>{% endif %}diff --git a/wger/nutrition/templates/plan/overview.html b/wger/nutrition/templates/plan/overview.htmlindex bd2656f1f..9f4685229 100644--- a/wger/nutrition/templates/plan/overview.html+++ b/wger/nutrition/templates/plan/overview.html@@ -35,9 +35,11 @@</tbody></table>{% else %}- <div class="box warning" id="nutrition-box-warning">- {% trans "No nutrition plans." %} {% trans "Use link to add one." %}- </div>+ <p>+ <a href="{% url 'wger.nutrition.views.plan.add' %}" class="btn btn-block">+ {% trans "No nutrition plans." %} {% trans "Add one now." %}+ </a>+ </p>{% endif %}{% endblock %}diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.htmlindex 34ead5362..3c276b2fc 100644--- a/wger/nutrition/templates/plan/view.html+++ b/wger/nutrition/templates/plan/view.html@@ -113,28 +113,25 @@ $(document).ready(function() {</span></li>{% empty %}- <div class="box warning ingredient-box-warning">- {% trans "No items for this meal." %}- <a href="{% url 'mealitem-add' meal.id %}"- title="{% trans 'Add one now' %}"- class="modal-dialog edit-meal">- {% trans "Add one now."%}- </a>- </div>+ <a href="{% url 'mealitem-add' meal.id %}"+ title="{% trans 'Add one now' %}"+ class="modal-dialog edit-meal btn btn-block">+ {% trans "No items for this meal." %}+ {% trans "Add one now."%}+ </a>{% endfor %}</ul></td></tr>{% empty %}- <div class="box warning" id="meal-box-warning">- {% trans "No meals for this plan." %}- <a href="{% url 'meal-add' plan.id %}"- class="modal-dialog">- {% trans "Add one now." %}- </a>- </div>-+<p>+ <a href="{% url 'meal-add' plan.id %}"+ class="modal-dialog btn btn-block">+ {% trans "No meals for this plan." %}+ {% trans "Add one now." %}+ </a>+</p>{% endfor %}<tr><td colspan="2">diff --git a/wger/weight/templates/weight_overview.html b/wger/weight/templates/weight_overview.htmlindex 6b23cb6a7..b5277e2a3 100644--- a/wger/weight/templates/weight_overview.html+++ b/wger/weight/templates/weight_overview.html@@ -76,10 +76,10 @@ $(document).ready(function () {-->{% block content %}{% if not min_date %}-<div class="box warning" id="weight-box-warning">+<p>{% trans "There is no chart here because there are no weight entries." %}{% trans "Use link to add one." %}-</div>+</p>{% endif %}<div id="weight_diagram"></div>