Private
Public Access
1
0

blogs to left menu

This commit is contained in:
Sander Roosendaal
2019-05-28 17:16:37 +02:00
parent 47ce7ec206
commit cc40f589c3
5 changed files with 103 additions and 56 deletions

View File

@@ -10,32 +10,6 @@
<li class="grid_4"> <li class="grid_4">
<h1>New Coach Registration (free Coach Plan)</h1> <h1>New Coach Registration (free Coach Plan)</h1>
</li> </li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
<li class="grid_2"> <li class="grid_2">
<div id="registrationform"> <div id="registrationform">
@@ -69,6 +43,32 @@
<p>Also, we are restricting access to the site to 16 years and older <p>Also, we are restricting access to the site to 16 years and older
because of EU data protection regulations.</p> because of EU data protection regulations.</p>
</li> </li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
</ul> </ul>

View File

@@ -0,0 +1,17 @@
{% load staticfiles %}
{% load rowerfilters %}
{% for blog in blogposts %}
<li class="frontitem">
<h3 class="midden">{{ blog.title|safe }}</h3>
<p class="midden">
<img src={{ blog.image }} height=150px;>
</p>
{{ blog.excerpt|safe }}
<p class="midden">
<a href={{ blog.link }}>
read more
</a>
</p>
</li>
{% endfor %}

View File

@@ -10,32 +10,6 @@
<li class="grid_4"> <li class="grid_4">
<h1>New User Registration</h1> <h1>New User Registration</h1>
</li> </li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
<li class="grid_2"> <li class="grid_2">
<div id="registrationform"> <div id="registrationform">
@@ -69,6 +43,32 @@
<p>Also, we are restricting access to the site to 16 years and older <p>Also, we are restricting access to the site to 16 years and older
because of EU data protection regulations.</p> because of EU data protection regulations.</p>
</li> </li>
<li class="rounder grid_2">
<a href="/rowers/coachregister">
<h1>Register as a coach (free)</h1>
<p>Click here and fill out the form to start with a free Coach plan. This allows you
to manage up to 10 athletes (who have to be on the Pro plan). You cannot upload your own
workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including coach plans for larger
athlete groups or rower plans for managing your own training plan and workouts.
</p>
</a>
</li>
<li class="rounder grid_2">
<a href="/rowers/register">
<h1>Register as an athlete (free)</h1>
<p>Click here and fill out the form to start with a free Athlete plan. This allows you
to store and analyze your own workouts.
</p>
<p>
From this free plan, you can upgrade to any of the paid plans, including
coach plans for managing larger athlete groups or rower plans for expanded
analytics.
</p>
</a>
</li>
</ul> </ul>

View File

@@ -242,6 +242,12 @@ th.rotate > div > span {
max-width: 200px; max-width: 200px;
} }
@media only screen and (max-width: 450px) {
.site-announcement-box {
max-width: 100%;
}
}
.site-announcement { .site-announcement {
font: 1.0em/1.2em sans-serif; font: 1.0em/1.2em sans-serif;

View File

@@ -330,10 +330,12 @@
</p> </p>
{% endif %} {% endif %}
{% block ad %} {% block ad %}
<a href="https://pryglrowing.com"> <div id="id_blogs">
<img src="/static/img/prygl.jpg"> </div>
<p style="text-align: center">Prygl Rowing Camps</p> <a href="https://pryglrowing.com">
</a> <img src="/static/img/prygl.jpg">
<p style="text-align: center">Prygl Rowing Camps</p>
</a>
{% endblock %} {% endblock %}
</ad> </ad>
@@ -432,3 +434,25 @@
}); });
}); });
</script> </script>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
</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>