proboards-website-generator/templates/thread.html.j2
Sebastian Hugentobler e0d7d339c9 better style
2015-05-18 16:09:11 +02:00

39 lines
1.0 KiB
Django/Jinja

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<style type="text/css">
body {
margin: 40px auto;
max-width: 650px;
line-height: 1.6;
font-size: 18px;
color: #444;
padding: 0 10px
}
h1,
h2,
h3 {
line-height: 1.2
}
</style>
<title>{{ title }}</title>
</head>
<body>
<h1>{{ thread.title }}</h1>
{% for post in thread.posts %}
<a href="#{{ loop.index }}">{{ loop.index }} - </a>
<b><a name="{{ loop.index }}" href={{ "../../user/" + post.user.name |url_replacer + ".html" }}>{{ post.user.name }}</a></b>
<i>({{ post.timestamp | fromunixtime }})</i>
<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>