Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix HTML validation problems
Roland Geiderbb8fe366609f
diff --git a/wger/manager/templates/calendar/month.html b/wger/manager/templates/calendar/month.htmlindex b06f6521b..951d4e9a0 100644--- a/wger/manager/templates/calendar/month.html+++ b/wger/manager/templates/calendar/month.html@@ -137,9 +137,9 @@ day in your current workout:{% endblocktrans %} <strong>{{current_workout}}</stryou can click on them to see the details.{% endblocktrans %}</p><p>- <div style="background-color: #C9302C; display: inline;"> </div> {{ impressions.0.1 }}<br>- <div style="background-color: #EC971F; display: inline;"> </div> {{ impressions.1.1 }}<br>- <div style="background-color: #449D44; display: inline;"> </div> {{ impressions.2.1 }}+ <span style="background-color: #C9302C; display: inline;"> </span> {{ impressions.0.1 }}<br>+ <span style="background-color: #EC971F; display: inline;"> </span> {{ impressions.1.1 }}<br>+ <span style="background-color: #449D44; display: inline;"> </span> {{ impressions.2.1 }}</p><h3>{% trans 'Log' %}</h3>diff --git a/wger/manager/templates/mobile/calendar/month.html b/wger/manager/templates/mobile/calendar/month.htmlindex aa9d91940..8e5dcd6c9 100644--- a/wger/manager/templates/mobile/calendar/month.html+++ b/wger/manager/templates/mobile/calendar/month.html@@ -181,9 +181,9 @@ day in your current workout:{% endblocktrans %} {{current_workout}}</p>you can click on them to see the details.{% endblocktrans %}</p><p>- <div style="background-color: #C9302C; display: inline;"> </div> {{ impressions.0.1 }}<br>- <div style="background-color: #EC971F; display: inline;"> </div> {{ impressions.1.1 }}<br>- <div style="background-color: #449D44; display: inline;"> </div> {{ impressions.2.1 }}+ <span style="background-color: #C9302C; display: inline;"> </span> {{ impressions.0.1 }}<br>+ <span style="background-color: #EC971F; display: inline;"> </span> {{ impressions.1.1 }}<br>+ <span style="background-color: #449D44; display: inline;"> </span> {{ impressions.2.1 }}</p><h3>{% trans 'Log' %}</h3>diff --git a/wger/manager/views/log.py b/wger/manager/views/log.pyindex 2033e95f7..bc70c616e 100644--- a/wger/manager/views/log.py+++ b/wger/manager/views/log.py@@ -343,8 +343,8 @@ class WorkoutCalendar(HTMLCalendar):url = reverse('manager:log:log', kwargs={'pk': current_log['log'].workout_id})formatted_date = date_obj.strftime('%Y-%m-%d')body = []- body.append('<a href="{0}"'- 'data-log="log-{1}"'+ body.append('<a href="{0}" '+ 'data-log="log-{1}" ''class="btn btn-block {2} calendar-link">'.format(url,formatted_date,background_css))