bornhack-website/villages/templates/village_list.html

52 lines
1.3 KiB
HTML
Raw Normal View History

2016-07-05 21:43:18 +00:00
{% extends 'base.html' %}
{% block content %}
<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">
<a href="https://bornhack.dk/shop/?category=villages">
It is also possible to rent a tent, chairs and tables for villages here.
</a>
2016-07-05 21:43:18 +00:00
</p>
{% if user.is_authenticated %}
<a href="{% url 'villages:create' %}" class="btn btn-primary">Create a village</a>
{% endif %}
<hr />
<table class="table table-hover table-condensed table-striped">
<thead>
<tr>
<th>Name</th>
2016-07-05 21:48:04 +00:00
<th>Description</th>
<th>Public</th>
2016-07-05 21:43:18 +00:00
</tr>
</thead>
<tbody>
{% for village in villages %}
<tr>
<td>
<a href="{% url 'villages:detail' slug=village.slug %}">
{{ village.name }}
</a>
</td>
<td>
{{ village.description|truncatewords:15 }}
</td>
<td>
<i class="glyphicon glyphicon-{% if village.private %}remove{% else %}ok{% endif %}"></i>
</td>
2016-07-05 21:43:18 +00:00
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}