38 lines
1,004 B
HTML
38 lines
1,004 B
HTML
|
{% 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>
|
||
|
|
||
|
{% 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>
|
||
|
<th>Price</th>
|
||
|
</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>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
{% endblock %}
|