36 lines
No EOL
1.1 KiB
HTML
36 lines
No EOL
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% from "macros/title.html" import title_tag with context %}
|
|
|
|
{% block title %}{{ title_tag(T('search-results', "“" + q + "”") if q else T('search'), False) }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<main>
|
|
<h1>{{ T('search') }}</h1>
|
|
|
|
<div class="inner-content">
|
|
<form method="POST">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<div class="search-wrapper">
|
|
<label for="q">Search for: </label>
|
|
<input type="search" name="q" value="{{ q }}" class="search-input">
|
|
</div>
|
|
<div>
|
|
<input type="checkbox" name="include-tags" value="1" {% if pl_include_tags %}checked{% endif %}>
|
|
<label for="include-tags">{{ T('include-tags') }}</label>
|
|
</div>
|
|
</form>
|
|
|
|
{% if results %}
|
|
<h2>{{ T('search-results') }} <em>{{ q }}</em></h2>
|
|
|
|
{% from "macros/nl.jinja2" import nl_list with context %}
|
|
{{ nl_list(results, other_url=None) }}
|
|
{% elif q %}
|
|
<h2>{{ T('search-no-results') }} <em>{{ q }}</em></h2>
|
|
{% else %}
|
|
<p><u>Please note that search queries do not search for page text.</u></p>
|
|
{% endif %}
|
|
</div>
|
|
</main>
|
|
|
|
{% endblock %} |