a few design changes to people.html
This commit is contained in:
parent
9a47622bc6
commit
11a9ac5eac
|
@ -1,6 +1,7 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load commonmark %}
|
||||
{% load teams_tags %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}
|
||||
People | {{ block.super }}
|
||||
|
@ -12,43 +13,43 @@ People | {{ block.super }}
|
|||
<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 %}
|
||||
<h3>{{ camp.title }} Teams</h3>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Members</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for team in camp.teams.all %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ team.name }} Team
|
||||
</td>
|
||||
<td>
|
||||
{{ team.description|unsafecommonmark }}
|
||||
</td>
|
||||
<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>
|
||||
{% if team.approvedmembers.count == team.anoncount %}
|
||||
<b>{{ team.anoncount }}</b> anonymous member(s)
|
||||
{% endif %}
|
||||
|
||||
<td>
|
||||
{% if team.approvedmembers.count == team.anoncount %}
|
||||
{{ team.anoncount }} anonymous member(s)
|
||||
{% endif %}
|
||||
|
||||
{% for member in team.approvedmembers.all %}
|
||||
{% if member.user.profile.approved_public_credit_name %}
|
||||
{{ member.user.profile.approved_public_credit_name }}{% if member.responsible %} (responsible){% endif %}<br>
|
||||
{% endif %}
|
||||
{% 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>
|
||||
{% endfor %}
|
||||
{% if team.anoncount and team.anoncount != team.approvedmembers.count %}
|
||||
plus {{ team.anoncount }} anonymous member(s).
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue