Private
Public Access
1
0

link to teams page

This commit is contained in:
Sander Roosendaal
2017-02-14 11:08:59 +01:00
parent 253454ff3f
commit 3cf334382d

View File

@@ -105,7 +105,7 @@
<p>&nbsp;</p> <p>&nbsp;</p>
{% endif %} {% endif %}
</div> </div>
<div class="grid_2 suffix_1 tooltip"> <div class="grid_2 tooltip">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<p> <p>
<a class="button gray small" href="/rowers/analysis">Analysis</a> <a class="button gray small" href="/rowers/analysis">Analysis</a>
@@ -115,6 +115,23 @@
<p>&nbsp;</p> <p>&nbsp;</p>
{% endif %} {% endif %}
</div> </div>
<div class="grid_1 tooltip">
{% if user.is_authenticated and user.rower.team.all %}
<div class="grid_1 alpha dropdown">
<button class="grid_1 alpha button gray small dropbtn">
Teams
</button>
<div class="dropdown-content">
{% for t in user.rower.team.all %}
<a class="button gray small" href="/rowers/list-workouts/team/{{ t.id }}/">{{ t.name }}</a>
{% endfor %}
</div>
</div>
<span class="tooltiptext">See recent workouts for your team</span>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_1 omega tooltip"> <div class="grid_1 omega tooltip">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<p> <p>
@@ -153,8 +170,7 @@
<div class="grid_12 omega" > <div class="grid_12 omega" >
{% block footer %} {% block footer %}
<p id="footer" <p id="footer">{{ versionstring }}</p>
>{{ versionstring }}</p>
<div class="grid_2 alpha"> <div class="grid_2 alpha">
<p id="footer"><a href="/rowers/email/">&copy; Sander Roosendaal</a></p> <p id="footer"><a href="/rowers/email/">&copy; Sander Roosendaal</a></p>
</div> </div>