diff --git a/rowers/templates/team_compare_select.html b/rowers/templates/team_compare_select.html
index 162a36ee..0b3e8e5b 100644
--- a/rowers/templates/team_compare_select.html
+++ b/rowers/templates/team_compare_select.html
@@ -8,9 +8,7 @@
-
- {% include "teambuttons.html" with teamid=team.id %}
-
+ {% include "teambuttons.html" with teamid=team.id team=team %}
{{ team.name }} Team Workouts
diff --git a/rowers/templates/teambuttons.html b/rowers/templates/teambuttons.html
index 12351b95..e45b807e 100644
--- a/rowers/templates/teambuttons.html
+++ b/rowers/templates/teambuttons.html
@@ -14,7 +14,7 @@
Team Page
+
{% if user|is_manager and user|has_teams %}
Upload Workout
@@ -23,3 +23,14 @@
{% endif %}
+
+ {% if team and team.manager == user %}
+
+
+ Team Stats
+
+
+ {% else %}
+
+ {% endif %}
+
diff --git a/rowers/templates/teamstats.html b/rowers/templates/teamstats.html
new file mode 100644
index 00000000..312097f4
--- /dev/null
+++ b/rowers/templates/teamstats.html
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+
+{% block title %}Team {% endblock %}
+
+{% block content %}
+
+ {% include "teambuttons.html" with teamid=team.id team=team %}
+
+
+
{{ team.name }} Stats
+
+ Links to the cumulative statistics pages for your team's members
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/rowers/templates/user_boxplot_select.html b/rowers/templates/user_boxplot_select.html
index 923ceb84..cb9ee37f 100644
--- a/rowers/templates/user_boxplot_select.html
+++ b/rowers/templates/user_boxplot_select.html
@@ -7,11 +7,11 @@
{% block content %}
+ {% if team %}
-
- {% include "teambuttons.html" with teamid=team.id %}
-
+ {% include "teambuttons.html" with teamid=team.id team=team %}
+{% endif %}
{% if theuser %}
@@ -20,7 +20,7 @@
{{ user.first_name }}'s Workouts
{% endif %}
-
+
{% if user.is_authenticated and user|is_manager %}