From 811f1a65ab43b1b3869081bfb44a168bee51b20d Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 6 Apr 2017 22:01:35 +0200 Subject: [PATCH] added teams button if you are not team member --- rowers/templates/base.html | 14 ++++- rowers/views.py | 104 ++++++++++++++++++++++++++++++++++--- 2 files changed, 109 insertions(+), 9 deletions(-) diff --git a/rowers/templates/base.html b/rowers/templates/base.html index 86d4840f..50fb8a97 100644 --- a/rowers/templates/base.html +++ b/rowers/templates/base.html @@ -133,7 +133,19 @@ {% endif %}
- {% if user.is_authenticated and user.rower.team.all %} + {% if user.is_authenticated and teams %} + + See recent workouts for your team + {% elif user.is_authenticated and user.rower.team.all %}