Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move calendar templates to own folder

Roland Geiderfdcbad67ec91
diff --git a/wger/manager/templates/workout/calendar_day.html b/wger/manager/templates/calendar/day.html
similarity index 100%
rename from wger/manager/templates/workout/calendar_day.html
rename to wger/manager/templates/calendar/day.html
diff --git a/wger/manager/templates/workout/calendar.html b/wger/manager/templates/calendar/month.html
similarity index 100%
rename from wger/manager/templates/workout/calendar.html
rename to wger/manager/templates/calendar/month.html
diff --git a/wger/manager/templates/mobile/workout/calendar.html b/wger/manager/templates/mobile/calendar/month.html
similarity index 100%
rename from wger/manager/templates/mobile/workout/calendar.html
rename to wger/manager/templates/mobile/calendar/month.html
diff --git a/wger/manager/views/log.py b/wger/manager/views/log.py
index 29d57335e..34bee8c31 100644
--- a/wger/manager/views/log.py
+++ b/wger/manager/views/log.py
@@ -423,7 +423,7 @@ def calendar(request, username=None, year=None, month=None):
context['impressions'] = WorkoutSession.IMPRESSION
context['month_list'] = WorkoutLog.objects.filter(user=user).dates('date', 'month')
context['show_shariff'] = is_owner and user.userprofile.ro_access
- return render(request, 'workout/calendar.html', context)
+ return render(request, 'calendar/month.html', context)
def day(request, username, year, month, day):
@@ -446,4 +446,4 @@ def day(request, username, year, month, day):
context['is_owner'] = is_owner
context['show_shariff'] = is_owner and user.userprofile.ro_access
- return render(request, 'workout/calendar_day.html', context)
+ return render(request, 'calendar/day.html', context)