bornhack-website/villages/templates/village_list.html
2016-12-29 00:15:13 +01:00

58 lines
1.5 KiB
HTML

{% extends 'base.html' %}
{% load commonmark %}
{% block title %}
Villages | {{ block.super }}
{% endblock %}
{% block content %}
<h2>Villages</h2>
<p>
If this is your first hackercamp the term 'Village' might be confusing but it
is fairly simple: a village is just a spot on the campsite where you and a
bunch of your friends/likeminded people camp together. Apart from peoples
individual tents which they sleep in, many villages bring a large common tent
where you can hack and hang out during the day.
</p>
<p class="lead">
It is also possible to rent a tent, chairs and tables in the shop!
</p>
{% if user.is_authenticated %}
<a href="{% url 'village_create' camp_slug=camp.slug %}" class="btn btn-primary">Create a village</a>
{% endif %}
<hr />
{% if villages %}
<table class="table table-hover table-condensed table-striped">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Public</th>
</tr>
</thead>
<tbody>
{% for village in villages %}
<tr>
<td>
<a href="{% url 'village_detail' camp_slug=camp.slug slug=village.slug %}">
{{ village.name }}
</a>
</td>
<td>
{{ village.description|unsafecommonmark|truncatewords:50 }}
</td>
<td>
<i class="glyphicon glyphicon-{% if village.private %}remove{% else %}ok{% endif %}"></i>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<h4>No villages for <b>{{ camp.title }}</b> yet!</h4>
{% endif %}
{% endblock %}