a few design changes to people.html
This commit is contained in:
parent
9a47622bc6
commit
11a9ac5eac
|
@ -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,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!
|
<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">
|
||||||
|
<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">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Team Name</th>
|
||||||
<th>Description</th>
|
<th>Team Members</th>
|
||||||
<th>Members</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -27,28 +30,26 @@ People | {{ block.super }}
|
||||||
<td>
|
<td>
|
||||||
{{ team.name }} Team
|
{{ team.name }} Team
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{{ team.description|unsafecommonmark }}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{% if team.approvedmembers.count == team.anoncount %}
|
{% if team.approvedmembers.count == team.anoncount %}
|
||||||
{{ team.anoncount }} anonymous member(s)
|
<b>{{ team.anoncount }}</b> anonymous member(s)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for member in team.approvedmembers.all %}
|
{% for member in team.approvedmembers.all %}
|
||||||
{% if member.user.profile.approved_public_credit_name %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if team.anoncount and team.anoncount != team.approvedmembers.count %}
|
{% if team.anoncount and team.anoncount != team.approvedmembers.count %}
|
||||||
plus {{ team.anoncount }} anonymous member(s).
|
plus <b>{{ team.anoncount }}</b> anonymous member(s).
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue