mirror of
https://github.com/tiyn/container-critique.git
synced 2025-12-17 00:49:46 +01:00
search: added full-text search and docstrings
This commit is contained in:
23
src/templates/search.html
Normal file
23
src/templates/search.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends "template.html" -%}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<h1>Search</h1><br>
|
||||
<div class="search">
|
||||
<form action="{{ url_for('search') }}" method=post>
|
||||
{{ form.hidden_tag() }}
|
||||
{{ form.query_str }}
|
||||
{{ form.submit }}
|
||||
</form>
|
||||
<ul>
|
||||
{% for entry in results -%}
|
||||
<li>
|
||||
<a href="{{ url_for('entry', ident=entry.id) }}">
|
||||
{{ entry.date }} {{ r_to_star(entry.rating) }} {{ entry.item.name }} ({{ entry.item.date }}) by {{ entry.user.name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor -%}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock -%}
|
||||
Reference in New Issue
Block a user