thebadspace/templates/front/listing.twig
Ro 245531faf6 Added support of fedifence CSV and pagination
Populated the DB with entries from a fedifence export provided by
@Oliphant (https://codeberg.org/oliphant/blocklists).

As such also updated the appropriate templates with pagination to be
able to peruse through the location directory.

Also added an edit link on the location template front end to make
finding and updating instance info easy.
2023-01-23 19:59:51 -08:00

24 lines
661 B
Twig

{% extends "base/frame.twig" %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
{% endblock %}
{% block main %}
<section role="listings">
<h1>The Bad Space Listings</h1>
<h2>Page
{{ options.currentPage }}
of
{{ options.list.total }}</h2>
{% for location in options.list.locations %}
<a href="/location/{{ location.uuid }}">
<label>{{ location.id }}</label>
{{ location.name }}</a>
<br/>
{% endfor %}
<a href="/listings/page/{{ options.prevPage }}">Previous</a>
<a href="/listings/page/{{ options.nextPage }}">Next</a>
</section>
{% endblock %}