2018-04-09 23:37:21 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2018-04-08 17:30:03 +02:00
|
|
|
<head>
|
2018-04-09 23:37:21 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2018-04-14 17:59:52 +02:00
|
|
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self';">
|
2018-04-09 23:37:21 +02:00
|
|
|
<!-- 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>
|
2018-04-08 17:30:03 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2018-04-09 23:37:21 +02:00
|
|
|
<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>
|
2018-04-09 23:37:21 +02:00
|
|
|
<a class="btn btn-outline-secondary my-2" href="/thread/new">New thread</a>
|
|
|
|
</form>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="list-group">
|
|
|
|
{% for thread in threads -%}
|
2018-04-15 00:41:17 +02:00
|
|
|
<a href="/thread/{{ thread.id }}" class="list-group-item list-group-item-action flex-column align-items-start {%- if thread.sticky %} bg-secondary text-white {% endif -%}">
|
2018-04-09 23:37:21 +02:00
|
|
|
<div class="d-flex w-100 justify-content-between">
|
2018-04-14 22:30:03 +02:00
|
|
|
<h5 class="mb-1">{% if thread.sticky %}<span class="badge badge-light">Sticky</span> {% endif %}{{ thread.title }}</h5>
|
2018-04-15 00:41:17 +02:00
|
|
|
<small class="{% if thread.sticky %}text-white{% else %}text-muted{% endif %}">{{ thread.posted }}</small>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
|
|
|
<p class="mb-1">Created by {{ thread.author_name }}</p>
|
|
|
|
</a>
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-08 20:01:41 +02:00
|
|
|
</div>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
2018-04-08 17:30:03 +02:00
|
|
|
</body>
|
|
|
|
</html>
|