Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Make some improvements to log overview

Roland Geider751c6aa3925f
diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.html
index 9f863ec9a..cfdde836a 100644
--- a/wger/manager/templates/workout/log.html
+++ b/wger/manager/templates/workout/log.html
@@ -77,25 +77,31 @@ $(document).ready(function() {
{% with day_list=workout_log|get_item:day.obj.id %}
{% with exercise_list=day_list|get_item:exercise.obj.id %}
- <div class="alert alert-info" style="text-align: center;margin-top:1em;">
- <a href="{{ exercise.obj.get_absolute_url }}">{{ exercise.obj.name }}</a>
- </div>
- {% if exercise_list.log_by_date %}
- {% with list=exercise_list.log_by_date %}
- {% render_weight_log list exercise_list.div_uuid owner_user %}
-
- <script>
- $(document).ready(function() {
- draw_weight_log_chart({{exercise_list.chart_data|safe}},
- "{{exercise_list.div_uuid}}",
- "{{reps}}");
- });
- </script>
- {% endwith %}
- {% else %}
- <p><em>{% trans "No weight entries here." %}</em></p>
- {% endif %}
+ <div class="row" style="padding-top: 1em;">
+ <div class="col-xs-3">
+ <strong><a href="{{ exercise.obj.get_absolute_url }}">{{ exercise.obj.name }}</a></strong>
+ </div>
+ <div class="col-xs-9">
+ {% if exercise_list.log_by_date %}
+ {# TODO: perhaps move the draw_weight_chart function to render_weight_log #}
+ {% with list=exercise_list.log_by_date %}
+ {% render_weight_log list exercise_list.div_uuid owner_user %}
+ <script>
+ $(document).ready(function() {
+ draw_weight_log_chart({{exercise_list.chart_data|safe}},
+ "{{exercise_list.div_uuid}}",
+ "{{reps}}");
+ });
+ </script>
+ {% endwith %}
+
+
+ {% else %}
+ <p><em>{% trans "No weight entries here." %}</em></p>
+ {% endif %}
+ </div>
+ </div>
{% endwith %}
{% endwith %}