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">
|
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">
|
2018-04-14 18:12:24 +02:00
|
|
|
<!-- Custom CSS additions -->
|
|
|
|
<style>img { max-width:100%; height:auto; }</style>
|
2018-04-16 11:03:15 +02:00
|
|
|
<title>Converse: {{ title | safe }}</title>
|
2018-04-08 18:02:01 +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-12 01:07:25 +02:00
|
|
|
<a class="btn btn-outline-secondary my-2" href="/">Back to index</a>
|
2018-04-09 23:37:21 +02:00
|
|
|
</nav>
|
|
|
|
</header>
|
2018-04-08 18:02:01 +02:00
|
|
|
|
2018-04-09 23:37:21 +02:00
|
|
|
<div class="container">
|
2018-04-15 12:38:33 +02:00
|
|
|
<div class="list-group d-flex flex-column">
|
2018-04-16 13:33:47 +02:00
|
|
|
<div class="list-group-item d-flex row">
|
2018-04-16 11:03:15 +02:00
|
|
|
<h3>{{ title | safe }}</h3>
|
2018-04-15 12:38:33 +02:00
|
|
|
</div>
|
2018-04-08 20:20:17 +02:00
|
|
|
|
2018-04-15 12:38:33 +02:00
|
|
|
{% for post in posts -%}
|
2018-04-16 13:33:47 +02:00
|
|
|
<div id="post-{{ post.id}}" class="list-group-item d-flex row">
|
|
|
|
<div class="d-flex flex-column border-right col-2">
|
2018-04-16 16:48:42 +02:00
|
|
|
<img class="mx-auto" src="https://www.gravatar.com/avatar/{{ post.author_gravatar }}?d=monsterid&s=160" style="width: 80px;"/>
|
2018-04-16 13:33:47 +02:00
|
|
|
<span class="mx-auto text-center"><strong>{{ post.author_name }}</strong></span>
|
2018-04-15 12:38:33 +02:00
|
|
|
</div>
|
|
|
|
|
2018-04-16 13:33:47 +02:00
|
|
|
<div class="align-self-stretch col">{{ post.body | safe }}</div>
|
2018-04-15 12:38:33 +02:00
|
|
|
|
2018-04-16 13:33:47 +02:00
|
|
|
<div class="d-inline-flex flex-column align-items-end ml-auto col-1">
|
2018-04-15 12:38:33 +02:00
|
|
|
<a href="/thread/{{ id }}#post-{{ post.id }}" class="ml-auto">
|
|
|
|
<small class="text-muted float-right">{{ post.posted }}</small>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="d-inline-flex flex-row mt-auto ml-auto">
|
|
|
|
{%- if post.editable %}
|
2018-04-15 23:09:44 +02:00
|
|
|
<a href="/post/{{ post.id }}/edit" class="badge badge-light border m-1 p-1">Edit</a>
|
2018-04-15 12:38:33 +02:00
|
|
|
{% endif -%}
|
|
|
|
<a href="#quote" class="badge badge-light border m-1 p-1">Quote</a>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
2018-04-15 12:38:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{%- endfor %}
|
2018-04-11 13:25:12 +02:00
|
|
|
|
2018-04-16 13:33:47 +02:00
|
|
|
<div class="list-group-item flex-column align-items-start row">
|
2018-04-15 12:38:33 +02:00
|
|
|
<form id="reply-form" action="/thread/reply" method="post">
|
|
|
|
<input type="hidden" id="thread_id" name="thread_id" value="{{ id }}">
|
|
|
|
<label for="body">You can use <strong>Markdown</strong>!</label>
|
|
|
|
<div class="input-group">
|
2018-04-15 21:13:20 +02:00
|
|
|
<textarea class="form-control" id="post" name="post" aria-label="thread response" rows="10"></textarea>
|
2018-04-15 12:38:33 +02:00
|
|
|
<div class="input-group-append">
|
|
|
|
<button class="btn btn-primary" type="submit">Post!</button>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-15 12:38:33 +02:00
|
|
|
</form>
|
2018-04-09 23:37:21 +02:00
|
|
|
</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>
|