2016-07-05 21:43:18 +00:00
|
|
|
{% extends 'base.html' %}
|
2016-08-15 06:36:07 +00:00
|
|
|
{% load commonmark %}
|
2016-07-05 21:43:18 +00:00
|
|
|
|
2016-07-11 12:36:21 +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>
|
2016-07-10 17:19:41 +00:00
|
|
|
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
|
2017-01-20 15:18:10 +00:00
|
|
|
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 %}
|
2017-01-20 15:18:10 +00:00
|
|
|
<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>
|
2016-07-10 17:19:41 +00:00
|
|
|
<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>
|
2016-08-15 07:22:48 +00:00
|
|
|
{{ village.description|unsafecommonmark|truncatewords:50 }}
|
2016-07-05 21:43:18 +00:00
|
|
|
</td>
|
2016-07-10 17:19:41 +00:00
|
|
|
<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 %}
|