jet-search/templates/search.html

49 lines
1.5 KiB
HTML
Raw Normal View History

2024-11-10 20:26:22 +01:00
<!--
jet-search
Copyright (C) 2024 VM-Experiments
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href=/static/style.css>
<title>Document</title>
</head>
<body>
<div id="top">
<h1 id="title">JetSearch</h1>
</div>
<div id="content">
<form id="form" action="/search" method="get">
<label for="textInput">Search:</label>
<input type="text" name="query" required>
<input type="submit" value="Submit">
</form>
{% for result in results %}
<a href="{{ result.link }}">{{ result.term }} <p class="link">{{ result.link }}</p>
<p class="description">{{ result.description }}</p>
</a>
<br>
{% endfor %}
</div>
</body>
</html>