Private
Public Access
1
0

provisional history page

This commit is contained in:
Sander Roosendaal
2020-05-04 21:39:55 +02:00
parent c92505b2a0
commit ed6b3e3bdd
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Rowsandall {% endblock %}
{% block main %}
<ul class="main-content">
<li class="grid_4">
<h1>Future Functionality</h1>
<p>Watch this space</p>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_analytics.html' %}
{% endblock %}

View File

@@ -752,6 +752,7 @@ urlpatterns = [
re_path(r'^workout/api/upload/',views.workout_upload_api,name='workout_upload_api'),
re_path(r'^access/share/$',views.createShareURL, name="sharedURL"),
re_path(r'^access/(?P<key>\w+)/$', views.sharedPage, name="sharedPage"),
re_path(r'^history/$',views.history_view,name="history_view"),
]
if settings.DEBUG:

View File

@@ -4650,3 +4650,25 @@ class AlertDelete(DeleteView):
# some checks
return obj
@login_required()
def history_view(request,userid=0):
r = getrequestrower(request,userid=userid)
breadcrumbs = [
{
'url':'rowers/analysis',
'name':'Analysis',
},
{
'url':reverse('history_view'),
'name': 'History',
},
]
return render(request,'history.html',
{
'rower':r,
'breadcrumbs':breadcrumbs,
'active':'nav-analysis'
})