bornhack-website/src/villages/templates/village_list.html

55 lines
1.5 KiB
HTML
Raw Normal View History

2016-07-05 21:43:18 +00:00
{% extends 'base.html' %}
{% load commonmark %}
2016-07-05 21:43:18 +00:00
{% block title %}
Villages | {{ block.super }}
{% endblock %}
2016-07-05 21:43:18 +00:00
{% block content %}
2016-12-28 23:15:13 +00:00
<h2>Villages</h2>
2016-07-05 21:43:18 +00:00
<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. It is also possible to rent a
tent, chairs and tables in the shop!
2016-07-05 21:43:18 +00:00
</p>
{% if user.is_authenticated and not camp.read_only %}
<a href="{% url 'village_create' camp_slug=camp.slug %}" class="btn btn-primary">Create a new {{ camp.title }} village</a>
2016-07-05 21:43:18 +00:00
{% endif %}
<hr />
2016-12-28 23:15:13 +00:00
{% if villages %}
2016-07-05 21:43:18 +00:00
<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>
2016-12-28 23:15:13 +00:00
<a href="{% url 'village_detail' camp_slug=camp.slug slug=village.slug %}">
2016-07-05 21:43:18 +00:00
{{ village.name }}
</a>
</td>
<td>
{{ village.description|untrustedcommonmark|truncatewords:50 }}
2016-07-05 21:43:18 +00:00
</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>
2016-12-28 23:15:13 +00:00
{% else %}
<h4>No villages for <b>{{ camp.title }}</b> yet!</h4>
{% endif %}
{% endblock %}