bornhack-website/src/teams/templates/team_detail.html
2017-04-08 10:09:06 +02:00

32 lines
1 KiB
HTML

{% extends 'base.html' %}
{% load commonmark %}
{% block title %}
Team: {{ team.name }} | {{ block.super }}
{% endblock %}
{% block content %}
<h3>{{ team.name }} Team</h3>
{{ team.description|unsafecommonmark }}
<p>Currently {{ team.members.count }} people are members of this team{% if request.user in team.members.all %} (including you){% endif %}.</p>
{% 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 %}
<hr />
<h3>{{ team.area.name }} Area:</h3>
<p>This team is under the <b>{{ team.area.name }} area</b>. The following people are responsible for the <b>{{ team.name }} team</b>:</p>
<ul>
{% for resp in team.responsible.all %}
<li><b>{{ resp.get_full_name|default:"Unnamed" }}</b></li>
{% endfor %}
</ul>
{% endblock %}