476 lines
17 KiB
HTML
476 lines
17 KiB
HTML
{% load leaflet_tags %}
|
|
{% load cookielaw_tags %}
|
|
{% load rowerfilters %}
|
|
{% load tz_detect %}
|
|
{% tz_detect %}
|
|
{% load analytical %}
|
|
{% block filters %}
|
|
{% endblock %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{% block title %}Rowsandall Rowing Data Analytics{% endblock %}</title>
|
|
{% analytical_head_top %}
|
|
|
|
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-1.0.4.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.0.4.min.css" type="text/css" />
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/forms.css"/>
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/widgets.css"/>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
|
|
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon" />
|
|
<link rel="icon" sizes="32x32" href="/static/img/favicon-32x32.png" type="image/png"/>
|
|
<link rel="icon" sizes="64x64" href="/static/img/favicon-64x64.png" type="image/png"/>
|
|
<link rel="icon" sizes="192x192" href="/static/img/favicon-192x192.png" type="image/png"/>
|
|
<link rel="icon" sizes="16x16" href="/static/img/favicon-16x16.png" type="image/png"/>
|
|
<meta charset="utf-8" />
|
|
{% block image_src %}<link rel="image_src" href="static/img/logo7.png" />{% endblock %}
|
|
<meta property="og:type" content="website">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
{% block og_image %}
|
|
<meta property="og:image" content="https://rowsandall.com/static/img/logo_r.png" />
|
|
<meta property="og:image:secure_url" content="https://rowsandall.com/static/img/logo_r.png" />
|
|
{% endblock %}
|
|
<meta property="og:url" content="https://rowsandall.com{{ request.get_full_path }}" />
|
|
<meta property="fb:app_id" content="694685920739849" />
|
|
<meta property="og:title" content="{% block og_title %}Rowsandall{% endblock %}" />
|
|
<meta property="og:description" content="{% block og_description %}Rowsandall: Free Data and Analysis. For Rowers. By Rowers.{% endblock %}" />
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/forms.css"/>
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/widgets.css"/>
|
|
|
|
<link rel="stylesheet" href="/static/css/resetnew.css" />
|
|
<link rel="stylesheet" href="/static/fontawesome/css/fontawesome.min.css">
|
|
<link rel="stylesheet" href="/static/fontawesome/css/all.min.css">
|
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.12.0/css/all.css" integrity="sha384-ekOryaXPbeCpWQNxMwSWVvQ0+1VrStoPJq54shlYhR8HzQgig1v5fas6YgOqLoKz" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/static/css/styles2.css">
|
|
<link rel="stylesheet" href="/static/css/text2.css" />
|
|
<link rel="stylesheet" href="/static/css/rowsandall2.min.css" />
|
|
{% block meta %} {% endblock %}
|
|
<div id="fb-root"></div>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
|
<script>(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.async=true;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10&appId=694685920739849";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));</script>
|
|
<script>
|
|
$(document).ready(function (){
|
|
FB.XFBML.parse();
|
|
})
|
|
|
|
</script>
|
|
<link rel="stylesheet" href="https://webapiv2.navionics.com/dist/webapi/webapi.min.css" >
|
|
<script type="text/javascript" src="https://webapiv2.navionics.com/dist/webapi/webapi.min.no-dep.js"></script>
|
|
<script>window.twttr = (function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0],
|
|
t = window.twttr || {};
|
|
if (d.getElementById(id)) return t;
|
|
js = d.createElement(s);
|
|
js.id = id;
|
|
js.async=true;
|
|
js.src = "https://platform.twitter.com/widgets.js";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
|
|
t._e = [];
|
|
t.ready = function(f) {
|
|
t._e.push(f);
|
|
};
|
|
|
|
return t;
|
|
}(document, "script", "twitter-wjs"));</script>
|
|
|
|
<script id="script-batch" type="text/javascript">
|
|
(function(d){
|
|
var js = d.createElement('script'); js.async = true; js.defer = true;
|
|
js.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
|
|
d.getElementsByTagName('head')[0].appendChild(js);
|
|
}(document));
|
|
</script>
|
|
|
|
|
|
<script defer
|
|
type="text/javascript"
|
|
src="//assets.pinterest.com/js/pinit.js"
|
|
>
|
|
</script>
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
$(document).ready(function(){
|
|
var accordionsMenu = $('.cd-accordion-menu');
|
|
|
|
if( accordionsMenu.length > 0 ) {
|
|
|
|
accordionsMenu.each(function(){
|
|
var accordion = $(this);
|
|
//detect change in the input[type="checkbox"] value
|
|
accordion.on('change', 'input[type="checkbox"]', function(){
|
|
var checkbox = $(this);
|
|
console.log(checkbox.prop('checked'));
|
|
( checkbox.prop('checked') ) ? checkbox.siblings('ul').attr('style', 'display:none;').slideDown(300) : checkbox.siblings('ul').attr('style', 'display:block;').slideUp(300);
|
|
});
|
|
});
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
$(document).ready(function(){
|
|
var active = "#{{ active }}";
|
|
$(active).addClass("nav-active");
|
|
});
|
|
});
|
|
</script>
|
|
{% analytical_head_bottom %}
|
|
</head>
|
|
|
|
<body data-root="https://webapiv2.navionics.com/dist/webapi/images">
|
|
<div class="wrapper">
|
|
|
|
<header class="main-head">
|
|
<ul>
|
|
<li>
|
|
<a href="/" title="Home">
|
|
<img src="/static/img/logo7.png"
|
|
alt="Rowsandall logo" width="250px">
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<p>Free Data and Analysis. For Rowers. By Rowers.</p>
|
|
</li>
|
|
</ul>
|
|
</header>
|
|
|
|
<user class="main-user">
|
|
<ul>
|
|
<li>
|
|
<a class="" href="/rowers/help/" title="Help">
|
|
<i class="fas fa-question-circle "></i>
|
|
</a>
|
|
</li>
|
|
{% if user.is_authenticated %}
|
|
<li>
|
|
<a href="/rowers/me/preferences/" title="Profile">
|
|
{% if user.rower.rowerplan == 'pro' %}
|
|
<i class="fas fa-user-ninja "></i>
|
|
{% elif 'coach' in user.rower.rowerplan %}
|
|
<i class="fas fa-users "></i>
|
|
{% elif user.rower.rowerplan == 'plan' %}
|
|
<i class="fas fa-user-chart "></i>
|
|
{% else %}
|
|
<a href="/rowers/me/preferences/" title="Profile">
|
|
<i class="fas fa-user"></i>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="" href="{% url 'logout' %}?next=/login/" title="Sign Out" id="id-logout">
|
|
<i class="fas fa-sign-out-alt "></i>
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a href="/rowers/register/" title="Sign Up">
|
|
<i class="fas fa-user-plus "></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'login' %}" title="Sign In">
|
|
<i class="fas fa-sign-in-alt "></i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</user>
|
|
|
|
<side-nav class="side-nav">
|
|
|
|
</side-nav>
|
|
|
|
<nav class="main-nav">
|
|
<ul>
|
|
<li id="nav-workouts">
|
|
<a href="/rowers/list-workouts/">
|
|
<i class="fas fa-clipboard-list"></i> Workouts
|
|
</a>
|
|
</li>
|
|
<li id="nav-racing">
|
|
<a href="/rowers/virtualevents/">
|
|
<i class="fas fa-flag-checkered"></i> Racing
|
|
</a>
|
|
</li>
|
|
<li id="nav-analysis">
|
|
<a href="/rowers/analysis/">
|
|
<i class="fas fa-analytics"></i> Analysis
|
|
</a>
|
|
</li>
|
|
<li id="nav-plan">
|
|
<a href="/rowers/sessions/">
|
|
<i class="fas fa-calendar-alt"></i> Plan
|
|
</a>
|
|
</li>
|
|
<li id="nav-teams">
|
|
<a href="/rowers/me/teams/">
|
|
<i class="fas fa-bullhorn"></i> Groups
|
|
{% if user.is_authenticated and user|openactions %}
|
|
({{ user|openactions }})
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<main class="content">
|
|
<ul class="main-content">
|
|
{% if WARNING_MESSAGE != '' %}
|
|
<li class="grid_4">
|
|
<p class="message">
|
|
{{ WARNING_MESSAGE }}
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% if user.rower.planexpires and user.rower|notfree and user.rower.paymenttype == 'single'%}
|
|
{% if user.rower.planexpires|is_future_date %}
|
|
{% if user.rower.planexpires|date_dif|ddays < 4 %}
|
|
<li class="grid_4">
|
|
<p class="successmessage">
|
|
You have {{ user.rower.planexpires|date_dif|ddays }} days left of your one year subscription. Please renew on or before {{ user.rower.planexpires }} or your plan will be reset to Basic. Click <a href="/rowers/paidplans/">here</a> to renew your membership.</p>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if user.rower.protrialexpires and user.rower.protrialexpires|is_future_date %}
|
|
{% if user.rower.plantrialexpires and user.rower.plantrialexpires|is_future_date and user.rower.rowerplan != 'plan' %}
|
|
<li class="grid_4">
|
|
<p class="successmessage">
|
|
{{ user.rower.protrialexpires|date_dif|ddays }} days left of your Self-Coach trial - Would you like to <a href="/rowers/paidplans/">upgrade now?</a>
|
|
</p>
|
|
</li>
|
|
{% else %}
|
|
{% if user.rower.rowerplan == 'basic' %}
|
|
<li class="grid_4">
|
|
<p class="successmessage">
|
|
{{ user.rower.protrialexpires|date_dif|ddays }} days left of your Pro trial - Would you like to <a href="/rowers/paidplans/">upgrade now?</a>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if user.rower.emailbounced %}
|
|
<li class="grid_4">
|
|
<p class="message">
|
|
Your email bounced. Please update your email address in the <a href="/rowers/me/edit/">user settings</a>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<li class="grid_4">
|
|
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
|
|
<p class="message">
|
|
{% else %}
|
|
<p class="successmessage">
|
|
{% endif %}
|
|
{{ message|safe }}
|
|
</p>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if breadcrumbs %}
|
|
<li class="grid_4">
|
|
<p>
|
|
<span>
|
|
<em>You are here:</em>
|
|
{% for crumb in breadcrumbs %}
|
|
<a href="{{ crumb.url }}"><em>{{ crumb.name }}</em></a>
|
|
{% if not forloop.last %}
|
|
/
|
|
{% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% block main %}
|
|
{% endblock %}
|
|
</main>
|
|
|
|
<aside class="side">
|
|
{% block sidebar %}
|
|
{% endblock %}
|
|
</aside>
|
|
|
|
<ad class="ad">
|
|
{% if request|announcements %}
|
|
<h2>News</h2>
|
|
{% for a in request|announcements %}
|
|
<div class="site-announcement-box">
|
|
<div class="site-announcement-white">
|
|
<em>{{ a.created }}:</em>
|
|
{{ a.announcement|urlshorten:20 }}
|
|
</div>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if user.is_authenticated and user|nogoals %}
|
|
<p>
|
|
<a href="/rowers/createplan/">Create a Training Target!</a>
|
|
</p>
|
|
{% endif %}
|
|
{% block ad %}
|
|
<div class="site-announcement-box">
|
|
<div class="site-announcement-white">
|
|
<a href="https://wp.me/P8g86e-Bs">Please take 2 minutes to fill out the survey!</a>
|
|
</div>
|
|
</div>
|
|
<div id="id_blogs">
|
|
</div>
|
|
<a href="https://pryglrowing.com">
|
|
<img src="/static/img/prygl.jpg">
|
|
<p style="text-align: center">Prygl Rowing Camps</p>
|
|
</a>
|
|
{% endblock %}
|
|
</ad>
|
|
|
|
<footer class="main-footer">
|
|
<p>Follow us on
|
|
<a href="https://twitter.com/rowsandall">
|
|
<i class="fab fa-twitter"></i>
|
|
</a>
|
|
<a href="https://www.instagram.com/roosendaalsander/">
|
|
<i class="fab fa-instagram"></i>
|
|
</a>
|
|
<a href="https://analytics.rowsandall.com/">
|
|
<i class="fab fa-wordpress-simple"></i>
|
|
</a>
|
|
<a href="https://www.facebook.com/rowsandall">
|
|
<i class="fab fa-facebook"></i>
|
|
</a>
|
|
</p>
|
|
<p>
|
|
<ul>
|
|
<li>
|
|
<h2>Help</h2>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/help/">Help</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://analytics.rowsandall.com/">
|
|
Rowing Analytics Blog
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://www.facebook.com/rowsandall">
|
|
Rowing Data Facebook Group</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/physics/">Rowing Physics</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h2>About</h2>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/email/">Contact</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/email/">Rowsandall s.r.o.</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/brochure/">Brochure</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/partners/">Partnering?</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/developers/">Developers Info</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h2>Paid Plans</h2>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/paidplans/">Paid Plans</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h2>Legal</h2>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/legal/">Terms and Conditions</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/legal/">Privacy Policy</a>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</p>
|
|
</footer>
|
|
{% analytical_body_bottom %}
|
|
{% block body_bottom %}{% endblock %}
|
|
</body>
|
|
</html>
|
|
|
|
{% block scripts %} {% endblock %}
|
|
|
|
<script defer type="text/javascript" src="/jsi18n/"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/core.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/jquery.init.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/admin/RelatedObjectLookups.js">
|
|
</script>
|
|
<script defer type="text/javascript" src="/static/admin/js/calendar.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/urlify.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/prepopulate.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/vendor/xregexp/xregexp.min.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/SelectBox.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/SelectFilter2.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/admin/DateTimeShortcuts.js"></script>
|
|
<script defer type="text/javascript" src="/static/admin/js/inlines.js"></script>
|
|
<script src="/static/cookielaw/js/cookielaw.js"></script>
|
|
|
|
|
|
<script>
|
|
window.addEventListener('DOMContentLoaded', function() {
|
|
$(function() {
|
|
$("#id-logout").click( function() {
|
|
localStorage.clear();
|
|
console.log('cleared storage');
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
console.log('loading script');
|
|
$.getJSON(window.location.protocol + '//'+window.location.host + '/getblogs/', function(data) {
|
|
var html = '';
|
|
|
|
$.each(data, function(key, blog) {
|
|
console.log(blog.title);
|
|
html += '<div class="site-announcement-box"><div class="site-announcement-white">';
|
|
html += '<a style="text-decoration: none; color: white;" href="'+blog.link+'">';
|
|
html += blog.title;
|
|
html += '</a>';
|
|
html += '</div></div>';
|
|
});
|
|
$("#id_blogs").html(html);
|
|
});
|
|
});
|
|
</script>
|