Private
Public Access
1
0

cleaning up

This commit is contained in:
Sander Roosendaal
2018-10-18 15:37:05 +02:00
parent ec7002bfdd
commit e9bc68c2a9
9 changed files with 113 additions and 211 deletions

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
@@ -46,3 +46,7 @@
<p> No workouts found </p> <p> No workouts found </p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block sidebar %}
{% include 'menu_workouts.html' %}
{% endblock %}

View File

@@ -1,54 +0,0 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}View Workout {% endblock %}
{% block content %}
<script type="text/javascript" src="/static/js/bokeh-0.12.3.min.js"></script>
<script async="true" type="text/javascript">
Bokeh.set_log_level("info");
</script>
{{ interactiveplot |safe }}
<script>
// Set things up to resize the plot on a window resize. You can play with
// the arguments of resize_width_height() to change the plot's behavior.
var plot_resize_setup = function () {
var plotid = Object.keys(Bokeh.index)[0]; // assume we have just one plot
var plot = Bokeh.index[plotid];
var plotresizer = function() {
// arguments: use width, use height, maintain aspect ratio
plot.resize_width_height(true, false, false);
};
window.addEventListener('resize', plotresizer);
plotresizer();
};
window.addEventListener('load', plot_resize_setup);
</script>
<style>
/* Need this to get the page in "desktop mode"; not having an infinite height.*/
html, body {height: 100%; margin:5px;}
</style>
<div id="workouts" class="grid_12 alpha">
<h1>Indoor Rower Power Histogram</h1>
<p>Summary of the past 12 months for {{ theuser.first_name }} {{ theuser.last_name }}</p>
<p>Direct link for other Pro users:
<a href="/rowers/{{ id }}/histo-all">https://rowsandall.com/rowers/{{ id }}/histo-all</a>
</p>
<div class="grid_12 alpha">
{{ the_div|safe }}
</div>
</div>
{% endblock %}

View File

@@ -1,27 +0,0 @@
{% extends "base.html" %}
{% block title %}Teams {% endblock %}
{% block content %}
<div class="grid_12 alpha">
<div class="grid_6 alpha">
<p>
<h2>Invitations</h2>
Future invitations page
</p>
</div>
<div class="grid_6 omega">
<p>
<h2>Manual with Code</h2>
</p>
</div>
</div>
{% endblock %}

View File

@@ -1,9 +1,8 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% block title %}About us{% endblock title %} {% block title %}About us{% endblock title %}
{% block content %} {% block main %}
<div class="grid_6 alpha">
<h2>Are you interested in partnering with Rowsandall.com?</h2> <h2>Are you interested in partnering with Rowsandall.com?</h2>
<p>The founding principle for rowsandall.com was, and still is, free data <p>The founding principle for rowsandall.com was, and still is, free data
@@ -58,11 +57,7 @@
at info@rowsandall.com with at info@rowsandall.com with
information about your product/service including any important information about your product/service including any important
links or images prior to sending the product.</p> links or images prior to sending the product.</p>
</div>
<div class="grid_6 omega">
<h2>Examples of possible partnerships</h2> <h2>Examples of possible partnerships</h2>
<p> <p>
We currently envision a couple of ways in which we can partner with We currently envision a couple of ways in which we can partner with
@@ -99,6 +94,9 @@
</lo> </lo>
</p> </p>
</div>
{% endblock content %} {% endblock main %}
{% block sidebar %}
{% include 'menu_help.html' %}
{% endblock %}

View File

@@ -1,48 +0,0 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Planned Sessions{% endblock %}
{% block content %}
<div class="grid_12 alpha">
{% include "planningbuttons.html" %}
</div>
<div class="grid_6 alpha">
<h1>Plan for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
</div>
<div id="timeperiod" class="grid_2 dropdown">
<button class="grid_2 alpha button gray small dropbtn">Time Period</button>
<div class="dropdown-content">
<a class="button gray small alpha"
href="/rowers/sessions/today/rower/{{ rower.id }}">
Today
</a>
<a class="button gray small alpha"
href="/rowers/sessions/thisweek/rower/{{ rower.id }}">
This Week
</a>
<a class="button gray small alpha"
href="/rowers/sessions/thismonth/rower/{{ rower.id }}">
This Month
</a>
<a class="button gray small alpha"
href="/rowers/sessions/lastweek/rower/{{ rower.id }}">
Last Week
</a>
<a class="button gray small alpha"
href="/rowers/sessions/lastmonth/rower/{{ rower.id }}">
Last Month
</a>
</div>
</div>
<div class="grid_12 alpha">
<p>
Click on session name to view
</p>
</div>
</form>
{% endblock %}

View File

@@ -0,0 +1,21 @@
{% extends "newbasefront.html" %}
{% block main %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
<ul class="main-content">
<li class="frontitem">
<p>Thanks for spending some quality time on rowsandall.com today.</p>
</li>
</ul>
<p class="midden"><a class="twitter-follow-button"
href="https://twitter.com/rowsandall">
Follow @rowsandall</a>
</p>
{% endblock %}

View File

@@ -1,10 +1,10 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
{% block title %}Workouts{% endblock %} {% block title %}Workouts{% endblock %}
{% block content %} {% block main %}
<h1>Available on MapMyFitness (UnderArmour)</h1> <h1>Available on MapMyFitness (UnderArmour)</h1>
{% if workouts %} {% if workouts %}
<table width="70%" class="listtable"> <table width="70%" class="listtable">
@@ -35,3 +35,7 @@
<p> No workouts found. We only list workouts with time data series. </p> <p> No workouts found. We only list workouts with time data series. </p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block sidebar %}
{% include 'menu_workouts.html' %}
{% endblock %}

View File

@@ -1025,6 +1025,7 @@ def rower_register_view(request):
{'form':form,}) {'form':form,})
# Shows analysis page # Shows analysis page
@login_required()
def analysis_view(request,userid=0): def analysis_view(request,userid=0):
r = getrequestrower(request,userid=userid) r = getrequestrower(request,userid=userid)
return render(request, return render(request,
@@ -1036,6 +1037,7 @@ def analysis_view(request,userid=0):
) )
# Shows laboratory page # Shows laboratory page
@login_required()
def laboratory_view(request,userid=0): def laboratory_view(request,userid=0):
r = getrequestrower(request,userid=userid) r = getrequestrower(request,userid=userid)
return render(request, return render(request,

View File

@@ -352,6 +352,7 @@
.main-head { .main-head {
grid-area: header; grid-area: header;
background-color: rgba(0,0,0,0.6); background-color: rgba(0,0,0,0.6);
padding: 15px;
} }
@@ -359,6 +360,7 @@
.main-user { .main-user {
grid-area: user; grid-area: user;
background-color: rgba(0,0,0,0.6); background-color: rgba(0,0,0,0.6);
padding: 15px;
} }
.content { .content {