mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Turned on Index search
Activated the full text search on the index pages as well as plugging in a tempalte to show location information. Still needs to be styled but it's all wired up. Also cleaned some typos in the About description. One day I'll be able to spell. One day.
This commit is contained in:
@ -16,15 +16,12 @@
|
||||
<a href="https://www.artistmarciax.com/">Artist Marcia X</a>
|
||||
with additional support from
|
||||
<a href="https://digital.rooting.garden">Ginger</a>
|
||||
to provide a catolog of instances seek to cause harm and reduce the quality of experience in the fediverse.
|
||||
to provide a catalog of instances that seek to cause harm and reduce the quality of experience in the fediverse.
|
||||
</p>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
Technial support provided by
|
||||
Technical support provided by
|
||||
<a href="https://roiskinda.cool/profile.html">Ro</a>.
|
||||
</p>
|
||||
</section>
|
||||
|
@ -5,12 +5,29 @@
|
||||
|
||||
{% block main %}
|
||||
<section role="start">
|
||||
<div>
|
||||
<span role="title">{{ options.count }}</span>
|
||||
<p>
|
||||
Bad Spaces tracked.<br/>
|
||||
Pace yourself.
|
||||
</p>
|
||||
<div role="index-wrapper">
|
||||
<div role="index-search">
|
||||
<form action="{{ path('index') }}" method="post" enctype="multipart/form-data">
|
||||
<input type="text" name="index_search" value="" placeholder="Take a look"/>
|
||||
<button>
|
||||
<i class="ti ti-search"></i>
|
||||
</button>
|
||||
</form>
|
||||
{{ options.count }}
|
||||
Bad Spaces tracked. Shot by
|
||||
<a href="https://unsplash.com/photos/935EcPU1pBI">Ussama Azam</a>
|
||||
|
||||
</div>
|
||||
{% if options.items is defined %}
|
||||
<div role="index-results">
|
||||
<h3>Found</h3>
|
||||
{% for item in options.items %}
|
||||
<a class="search-link" href="/location/{{ item.uuid }}">{{ item.name }}</a><br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
13
templates/front/location.twig
Normal file
13
templates/front/location.twig
Normal file
@ -0,0 +1,13 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section role="location">
|
||||
<h1>About
|
||||
{{ options.location.name }}</h1>
|
||||
|
||||
This is a location
|
||||
</section>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user