provisional history page
This commit is contained in:
21
rowers/templates/history.html
Normal file
21
rowers/templates/history.html
Normal 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 %}
|
||||
@@ -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:
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user