Víðir Valberg Guðmundsson
20f380dfd6
* Bump django from 2.2.8 to 3.0.2 in /src/requirements Bumps [django](https://github.com/django/django) from 2.2.8 to 3.0.2. - [Release notes](https://github.com/django/django/releases) - [Commits](https://github.com/django/django/compare/2.2.8...3.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Planked code form betterforms. * Remove betterform from requirements. * Try with master of django-allauth-2fa. * Use static templatetag library, staticfiles is gone. * Use newly released django-allauth-2fa 0.8 instead of git url. * Django 3.0.3 is out. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
{% extends 'base.html' %}
|
|
{% load commonmark %}
|
|
{% load static %}
|
|
{% 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>
|
|
<th>Colour</th>
|
|
</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>
|
|
<td style="background: {{ listcamp.colour }}">{% if listcamp.light_text %}<font color="#ffffff">{% else %}<font color="#000000">{% endif %}{{ listcamp.colour }}</font></td>
|
|
</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 %}
|
|
|