2017-01-25 00:49:13 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load commonmark %}
|
2020-02-07 17:21:34 +00:00
|
|
|
{% load static %}
|
2017-01-25 00:49:13 +00:00
|
|
|
{% load imageutils %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Tagline</th>
|
|
|
|
<th>Buildup</th>
|
|
|
|
<th>Camp</th>
|
|
|
|
<th>Teardown</th>
|
2017-11-05 15:13:50 +00:00
|
|
|
<th>Colour</th>
|
2017-01-25 00:49:13 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for listcamp in camps %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{% url 'camp_detail' camp_slug=listcamp.slug %}">{{ listcamp.title }}</a></td>
|
|
|
|
<td>{{ listcamp.tagline }}</td>
|
|
|
|
<td>{{ listcamp.buildup.lower }} to {{ listcamp.buildup.upper }}</td>
|
|
|
|
<td>{{ listcamp.camp.lower }} to {{ listcamp.camp.upper }}</td>
|
|
|
|
<td>{{ listcamp.teardown.lower }} to {{ listcamp.teardown.upper }}</td>
|
2018-08-18 15:45:33 +00:00
|
|
|
<td style="background: {{ listcamp.colour }}">{% if listcamp.light_text %}<font color="#ffffff">{% else %}<font color="#000000">{% endif %}{{ listcamp.colour }}</font></td>
|
2017-01-25 00:49:13 +00:00
|
|
|
</tr>
|
|
|
|
</a>
|
|
|
|
{% empty %}
|
|
|
|
<h3>No camps found, what gives?!</h3>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$("table").on("click", "tr", function(e) {
|
|
|
|
if ($(e.target).is("a,input")) // anything else you don't want to trigger the click
|
|
|
|
return;
|
|
|
|
location.href = $(this).find("a").attr("href");
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock content %}
|
|
|
|
|