proboards-website-generator/templates/thread.html.j2
2015-05-12 20:18:31 +02:00

22 lines
754 B
Django/Jinja

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link href="styles.css" rel="stylesheet" type="text/css" />
<title>{{ title }}</title>
</head>
<body>
<h1>{{ thread.title }}</h1>
{% for post in thread.posts %}
<h3><a href={{ "../../user/" + post.user.name.replace('/', '_').replace(' ', '_').replace('?', '') + ".html" }}>{{ post.user.name }}</a> - {{ post.timestamp | fromunixtime }}</h3>
<p>{{ post.message | tohtml }}</p>
{% for attachment in post.attachments %}
--<br>
<a href="{{ attachment.url.replace('{{baseurl}}', 'static') }}">{{ attachment.name }}</a>
{% endfor %}
<hr>
{% endfor %}
</body>
</html>