2017-03-31 15:29:28 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load commonmark %}
|
2017-04-14 14:13:17 +00:00
|
|
|
{% load teams_tags %}
|
2017-05-21 14:05:31 +00:00
|
|
|
{% load bootstrap3 %}
|
2017-03-31 15:29:28 +00:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Team: {{ team.name }} | {{ block.super }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2017-05-24 05:49:32 +00:00
|
|
|
<h3>{{ team.name }} Team ({{ team.area.name }} area)</h3>
|
2017-03-31 15:29:28 +00:00
|
|
|
|
|
|
|
{{ team.description|unsafecommonmark }}
|
2017-07-11 20:50:31 +00:00
|
|
|
<p>Currently {{ team.approvedmembers.count }} people are members of this team{% if request.user in team.members.all %} (including you){% endif %}.</p>
|
2017-03-31 15:29:28 +00:00
|
|
|
|
2017-04-14 14:13:17 +00:00
|
|
|
{% if request.user in team.members.all %}
|
|
|
|
<p>Your team status: {% membershipstatus request.user team %}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2017-04-02 18:05:43 +00:00
|
|
|
{% if request.user in team.members.all %}
|
|
|
|
<a href="{% url 'team_leave' camp_slug=camp.slug slug=team.slug %}" class="btn btn-danger">Leave Team</a>
|
|
|
|
{% else %}
|
|
|
|
{% if team.needs_members %}
|
|
|
|
<a href="{% url 'team_join' camp_slug=camp.slug slug=team.slug %}" class="btn btn-success">Join Team</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2017-04-01 21:16:23 +00:00
|
|
|
|
2017-05-24 05:49:32 +00:00
|
|
|
{% if request.user in team.responsible.all %}
|
|
|
|
<a href="{% url 'team_manage' camp_slug=camp.slug slug=team.slug %}" class="btn btn-success">Manage Team</a>
|
|
|
|
{% endif %}
|
2017-04-02 17:11:11 +00:00
|
|
|
<hr />
|
2017-07-11 20:50:31 +00:00
|
|
|
<h3>Team Members</h3>
|
|
|
|
<p>The following people are members of the <b>{{ team.name }} team</b>:</p>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Name
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Status
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for teammember in team.approvedmembers.all %}
|
2017-07-11 21:32:56 +00:00
|
|
|
{% if teammember.user.profile.approved_public_credit_name and teammember.approved or teammember.responsible %}
|
2017-07-11 20:50:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2017-07-11 21:32:56 +00:00
|
|
|
{{ teammember.user.profile.approved_public_credit_name }}
|
2017-07-11 20:50:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if teammember.responsible %}Team Responsible{% else %}Team Member{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2017-04-02 17:11:11 +00:00
|
|
|
{% endfor %}
|
2017-07-11 20:50:31 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% if team.anoncount %}
|
|
|
|
<p>Plus <b>{{ team.anoncount }}</b> member(s) who prefer to remain anonymous.</p>
|
|
|
|
{% endif %}
|
2017-03-31 15:29:28 +00:00
|
|
|
{% endblock %}
|