a few design changes to people.html

This commit is contained in:
Thomas Steen Rasmussen 2017-07-12 00:08:51 +02:00
parent 9a47622bc6
commit 11a9ac5eac

View file

@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% load commonmark %}
{% load teams_tags %}
{% load static %}
{% block title %}
People | {{ block.super }}
@ -12,13 +13,15 @@ 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>
<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>Name</th>
<th>Description</th>
<th>Members</th>
<th>Team Name</th>
<th>Team Members</th>
</tr>
</thead>
<tbody>
@ -27,28 +30,26 @@ People | {{ block.super }}
<td>
{{ team.name }} Team
</td>
<td>
{{ team.description|unsafecommonmark }}
</td>
<td>
{% if team.approvedmembers.count == team.anoncount %}
{{ team.anoncount }} anonymous member(s)
<b>{{ team.anoncount }}</b> 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>
{{ 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 {{ team.anoncount }} anonymous member(s).
plus <b>{{ team.anoncount }}</b> anonymous member(s).
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endfor %}
{% endblock %}