Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Put logs and statistics under the routine URL

Roland Geider03bb3eadb56a
diff --git a/wger/manager/urls.py b/wger/manager/urls.py
index 48581d5c1..a339912ce 100644
--- a/wger/manager/urls.py
+++ b/wger/manager/urls.py
@@ -28,16 +28,6 @@ from wger.manager.views import (
workout,
)
-
-# sub patterns for workout logs
-patterns_log = [
- path(
- '<int:pk>/view',
- ReactView.as_view(login_required=True),
- name='log',
- ),
-]
-
# sub patterns for templates
patterns_templates = [
path(
@@ -92,6 +82,16 @@ patterns_routine = [
ReactView.as_view(login_required=True),
name='add',
),
+ path(
+ '<int:pk>/statistics',
+ ReactView.as_view(login_required=True),
+ name='statistics',
+ ),
+ path(
+ '<int:pk>/logs',
+ ReactView.as_view(login_required=True),
+ name='logs',
+ ),
path(
'<int:pk>/view',
ReactView.as_view(login_required=True),
@@ -129,5 +129,4 @@ urlpatterns = [
path('', include((patterns_routine, 'routine'), namespace='routine')),
path('template/', include((patterns_templates, 'template'), namespace='template')),
path('<int:routine_pk>/day/', include((patterns_days, 'day'), namespace='day')),
- path('log/', include((patterns_log, 'log'), namespace='log')),
]