proboards-website-generator/templates/thread.html.j2

28 lines
978 B
Plaintext
Raw Normal View History

2015-05-12 14:47:18 +00:00
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
2015-05-18 14:18:04 +00:00
<link href="static/styles.css" rel="stylesheet" type="text/css" />
2015-05-12 18:18:31 +00:00
<title>{{ title }}</title>
2015-05-12 14:47:18 +00:00
</head>
<body>
2015-05-18 14:36:47 +00:00
<ul>
2015-05-18 15:55:38 +00:00
<li><a href={{ "../" + board |find_board_id + '_' + board.title |url_replacer + ".html" }}>{{ board.title }}</a></li>
2015-05-18 14:36:47 +00:00
</ul>
<hr>
2015-05-12 14:47:18 +00:00
<h1>{{ thread.title }}</h1>
{% for post in thread.posts %}
2015-05-18 14:36:47 +00:00
<a href="#{{ loop.index }}">{{ loop.index }} </a><i>by </i>
<a name="{{ loop.index }}" href={{ "../../user/" + post.user.name |url_replacer + ".html" }}>{{ post.user.name }}</a>
2015-05-13 09:43:17 +00:00
<i>({{ post.timestamp | fromunixtime }})</i>
2015-05-12 14:47:18 +00:00
<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>