bornhack-website/src/people/templates/people.html

58 lines
2.1 KiB
HTML
Raw Normal View History

2017-07-11 20:50:31 +00:00
{% extends 'base.html' %}
{% load commonmark %}
{% load teams_tags %}
2017-07-11 22:08:51 +00:00
{% load static %}
2017-07-11 20:50:31 +00:00
{% block title %}
People | {{ block.super }}
{% endblock %}
{% block content %}
<h3>The People of BornHack</h3>
<p class="lead">The following is a list of the volunteers that have helped make BornHack happen. It goes without saying that an event like BornHack would not be possible to pull off without our volunteers. We are forever grateful, and we leave your names here as a recognition of the work you put in. Thank you!
{% for camp in camp_list %}
{% if camp.teams.exists %}
2017-07-11 22:08:51 +00:00
<div class="panel panel-default">
<div class="panel-heading">{{ camp.title }} Teams</div>
<div class="panel-body">
<img width=190 class="pull-right" src="{% static camp.logo_small %}">
<table class="table table-hover">
<thead>
<tr>
<th>Team Name</th>
<th>Team Members</th>
</tr>
</thead>
<tbody>
{% for team in camp.teams.all %}
<tr>
<td>
{{ team.name }} Team
</td>
<td>
2017-11-05 16:14:34 +00:00
{% if team.anoncount == 0 and team.approvedmembers.count == 0 %}
<b>No team member(s)
{% elif team.approvedmembers.count == team.anoncount %}
2017-07-11 22:08:51 +00:00
<b>{{ team.anoncount }}</b> anonymous member(s)
{% endif %}
2017-07-11 20:50:31 +00:00
2017-07-11 22:08:51 +00:00
{% for member in team.approvedmembers.all %}
{% if member.user.profile.approved_public_credit_name %}
{{ member.user.profile.approved_public_credit_name }}{% if member in team.responsible.all %} (responsible){% endif %}<br>
{% endif %}
{% endfor %}
{% if team.anoncount and team.anoncount != team.approvedmembers.count %}
plus <b>{{ team.anoncount }}</b> anonymous member(s).
{% endif %}
</td>
</tr>
2017-07-11 20:50:31 +00:00
{% endfor %}
2017-07-11 22:08:51 +00:00
</tbody>
</table>
</div>
</div>
2017-07-11 20:50:31 +00:00
{% endif %}
{% endfor %}
{% endblock %}