mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 06:49:02 +00:00
uWSGI config and bugfix with file extensions
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<form action="/search">
|
||||
|
||||
<div class="form-group">
|
||||
<input class="form-control" name="q" id="q" placeholder="Full-text Query">
|
||||
<input class="form-control" name="q" id="q" placeholder="Query">
|
||||
</div>
|
||||
|
||||
<input class="btn btn-primary btn-shadow" type="submit" value="Search">
|
||||
@@ -34,20 +34,5 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">Full-text Query Syntax</div>
|
||||
<div class="card-body">
|
||||
|
||||
<p>The following query types are allowed (More information
|
||||
<a href="https://www.sqlite.org/fts5.html#full_text_query_syntax">here</a>):</p>
|
||||
<p>Exact term: <code> "foo"</code></p>
|
||||
<p>Term with prefix: <code> "foo*"</code></p>
|
||||
<p>File names: <code> "name:foo"</code></p>
|
||||
<p>Paths: <code> "path:foo"</code></p>
|
||||
<p>Starts with term: <code> "^foo"</code></p>
|
||||
<p>NEAR group: <code> "NEAR(foo bar, 3)"</code></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock body %}
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
{# File name & link #}
|
||||
<a href="{{ src["website_url"] + src["path"] + "/" + src["name"] + src["ext"] }}" title="{{ src["name"] + src["ext"] }}">
|
||||
{{ hl_name |safe }}{{ src["ext"] }}
|
||||
<a href="{{ src["website_url"] + src["path"] + "/" + src["name"] + ("." if src["ext"] != "" else "") + src["ext"] }}" title="{{ src["name"] + src["ext"] }}">
|
||||
{{ hl_name |safe }}{{ ("." if src["ext"] != "" else "") + src["ext"] }}
|
||||
</a>
|
||||
{# File type badge #}
|
||||
{% set mime = get_mime(src["path"]) %}
|
||||
|
||||
Reference in New Issue
Block a user