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' %} {% extends 'base.html' %}
{% load commonmark %} {% load commonmark %}
{% load teams_tags %} {% load teams_tags %}
{% load static %}
{% block title %} {% block title %}
People | {{ block.super }} 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! <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 %} {% for camp in camp_list %}
{% if camp.teams.exists %} {% if camp.teams.exists %}
<h3>{{ camp.title }} Teams</h3> <div class="panel panel-default">
<table class="table table-hover"> <div class="panel-heading">{{ camp.title }} Teams</div>
<thead> <div class="panel-body">
<tr> <img width=190 class="pull-right" src="{% static camp.logo_small %}">
<th>Name</th> <table class="table table-hover">
<th>Description</th> <thead>
<th>Members</th> <tr>
</tr> <th>Team Name</th>
</thead> <th>Team Members</th>
<tbody> </tr>
{% for team in camp.teams.all %} </thead>
<tr> <tbody>
<td> {% for team in camp.teams.all %}
{{ team.name }} Team <tr>
</td> <td>
<td> {{ team.name }} Team
{{ team.description|unsafecommonmark }} </td>
</td> <td>
{% if team.approvedmembers.count == team.anoncount %}
<b>{{ team.anoncount }}</b> anonymous member(s)
{% endif %}
<td> {% for member in team.approvedmembers.all %}
{% if team.approvedmembers.count == team.anoncount %} {% if member.user.profile.approved_public_credit_name %}
{{ team.anoncount }} anonymous member(s) {{ member.user.profile.approved_public_credit_name }}{% if member in team.responsible.all %} (responsible){% endif %}<br>
{% endif %} {% endif %}
{% endfor %}
{% for member in team.approvedmembers.all %} {% if team.anoncount and team.anoncount != team.approvedmembers.count %}
{% if member.user.profile.approved_public_credit_name %} plus <b>{{ team.anoncount }}</b> anonymous member(s).
{{ member.user.profile.approved_public_credit_name }}{% if member.responsible %} (responsible){% endif %}<br> {% endif %}
{% endif %} </td>
</tr>
{% endfor %} {% endfor %}
{% if team.anoncount and team.anoncount != team.approvedmembers.count %} </tbody>
plus {{ team.anoncount }} anonymous member(s). </table>
{% endif %} </div>
</td> </div>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}