2018-04-14 22:06:30 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self';">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
<title>Converse Index</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-light bg-light justify-content-between mb-3">
|
|
|
|
<a class="navbar-brand" href="/">
|
|
|
|
<h2>Converse</h2>
|
|
|
|
</a>
|
2018-04-14 23:28:34 +02:00
|
|
|
<form class="form-inline" method="get" action="/search">
|
2018-04-14 22:06:30 +02:00
|
|
|
<input class="form-control mr-sm-2" type="search" placeholder="Search" name="query" aria-label="Search">
|
|
|
|
<button class="btn btn-outline-success my-2 my-sm-0 mr-1" type="submit">Search</button>
|
|
|
|
<a class="btn btn-outline-secondary my-2" href="/thread/new">New thread</a>
|
|
|
|
<a class="btn btn-outline-secondary my-2" href="/">Back to index</a>
|
|
|
|
</form>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">
|
|
|
|
<h2>Search results for '{{ query }}':</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="list-group">
|
|
|
|
{% for result in results -%}
|
2018-04-15 00:41:17 +02:00
|
|
|
<a href="/thread/{{ result.thread_id }}#post-{{ result.post_id }}" class="list-group-item list-group-item-action flex-column align-items-start">
|
2018-04-14 22:06:30 +02:00
|
|
|
<div class="d-flex w-100 justify-content-between">
|
2018-04-15 00:41:17 +02:00
|
|
|
<p class="mb-1">{{ result.headline }}</p>
|
|
|
|
<small class="float-right text-muted"><i>(Posted in '{{ result.title }}' by {{ result.author }})</i></small>
|
2018-04-14 22:06:30 +02:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|