2018-04-09 23:37:21 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2018-04-08 18:02:01 +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">
|
|
|
|
<!-- 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">
|
2018-04-08 18:02:01 +02:00
|
|
|
<title>Converse: {{ thread.title }}</title>
|
|
|
|
</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>
|
|
|
|
<form class="form-inline">
|
|
|
|
<a class="btn btn-outline-secondary my-2" href="/">Back to index</a>
|
|
|
|
</form>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2018-04-08 18:02:01 +02:00
|
|
|
|
2018-04-09 23:37:21 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="list-group">
|
|
|
|
<div class="list-group-item flex-column">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h3>{{ thread.title }}</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="list-group-item flex-column align-items-start">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-2 border-right">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<img src="https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<strong>{{ thread.author_name }}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-10">
|
|
|
|
{{ thread.body }}
|
|
|
|
</div>
|
2018-04-09 23:48:31 +02:00
|
|
|
<small class="text-muted"> {{ thread.posted }} </small>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-08 20:20:17 +02:00
|
|
|
|
2018-04-09 23:37:21 +02:00
|
|
|
{% for post in posts -%}
|
|
|
|
<div class="list-group-item flex-column align-items-start">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-2 border-right">
|
2018-04-09 23:48:31 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<img src="https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<strong>{{ post.author_name }}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-10">
|
|
|
|
{{ post.body }}
|
|
|
|
</div>
|
2018-04-09 23:48:31 +02:00
|
|
|
<small class="text-muted"> {{ post.posted }} </small>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{%- endfor %}
|
|
|
|
<div class="list-group-item flex-column align-items-start">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<form action="/thread/reply" method="post">
|
|
|
|
<input type="hidden" id="thread_id" name="thread_id" value="{{ thread.id }}">
|
|
|
|
<label for="body">You can use <strong>Markdown</strong>!</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<textarea class="form-control" id="body" name="body" aria-label="thread response"></textarea>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-outline-primary" type="submit">Post!</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-08 20:20:17 +02:00
|
|
|
</div>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
2018-04-08 18:02:01 +02:00
|
|
|
</body>
|
|
|
|
</html>
|