Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Improve presentation of weight data tables

Roland Geiderf848a51582a0
diff --git a/manager/templates/tags/render_weight_log.html b/manager/templates/tags/render_weight_log.html
index 990633c56..eef553cc3 100644
--- a/manager/templates/tags/render_weight_log.html
+++ b/manager/templates/tags/render_weight_log.html
@@ -16,17 +16,24 @@
</div>
<div style="overflow-x: auto;" class="weight-chart-table">
-<table class="noborder" style="border: 0 none; width: 7.5em; display:none;" id="table-{{div_uuid}}">
+<table class="noborder" style="border: 0 none; width: 7em; display:none;" id="table-{{div_uuid}}">
<tr>
{% for date, entry_list in log.items %}
<td style="padding: 0em; border-top-width: 0px;">
- <table class="narrow" style="width: 7.5em;">
+ <table class="narrow" style="width: 7em;">
<tr>
- <th>{{date|date:"d.m.Y"}}</th>
+ <th colspan="3">{{date|date:"d.m.Y"}}</th>
+ </tr>
+ <tr>
+ <td style="text-align:right;">{% trans "Reps" %}</td>
+ <td></td>
+ <td>{% trans "kg." %}</td>
</tr>
{% for entry in entry_list %}
<tr>
- <td>{{entry.reps}} {% trans "Reps" %} × {{entry.weight}}</td>
+ <td style="text-align:right;">{{entry.reps}}</td>
+ <td style="padding:0px;">×</td>
+ <td style="padding:0px;">{{entry.weight}}</td>
</tr>
{% endfor %}
</table>