Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Further reduce the horizontal space needed for workout log table

Roland Geider32310f8bba80
diff --git a/manager/templates/workout/log.html b/manager/templates/workout/log.html
index 75e2b47f4..902020576 100644
--- a/manager/templates/workout/log.html
+++ b/manager/templates/workout/log.html
@@ -27,8 +27,8 @@
<h3>{{ day.description }}</h3>
{% for set in day.set_set.select_related %}
{% for exercise in set.exercises.select_related %}
- <h5>{{ exercise.name }}</h5>
-
+ <p><a href="{{ exercise.get_absolute_url }}">{{ exercise.name }}</a></p>
+
<!-- Nested tables, ugh! -->
<div style="overflow-x: auto;">
<table class="noborder" style="border: 0 none;">
@@ -36,15 +36,14 @@
{% for day in workout_log %}
<td style="padding: 0em; border-top-width: 0px;">
- <table class="narrow" style="width: 8em;">
+ <table class="narrow" style="width: 7em;">
<tr>
- <th colspan="2">{{day.grouper|date:"d.m.Y" }}</th>
+ <th>{{day.grouper|date:"d.m.Y" }}</th>
</tr>
{% for entry in day.list %}
<tr>
{% if entry.exercise == exercise %}
- <td>{{entry.reps}} {% trans "Reps" %}</td>
- <td>{{entry.weight}}</td>
+ <td>{{entry.reps}} {% trans "Reps" %} × {{entry.weight}}</td>
{% endif %}
</tr>
{% endfor %}