initial commit
This commit is contained in:
commit
cf7819fb1e
9 changed files with 251 additions and 0 deletions
23
templates/board.html.j2
Normal file
23
templates/board.html.j2
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
{% if board.boards |length > 0 %}
|
||||
<ul>
|
||||
{% for board in board.boards %}
|
||||
<li><a href={{ "../board/" + board.title.replace('/', '_').replace(' ', '_').replace('?', '') + ".html" }}>{{ board.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<hr>
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for thread in board.threads %}
|
||||
<li><a href={{ "thread/" + thread.title.replace('/', '_').replace(' ', '_').replace('?', '') + ".html" }}>{{ thread.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
22
templates/boards.html.j2
Normal file
22
templates/boards.html.j2
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="users.html">Users</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<ul>
|
||||
{% for board in boards %}
|
||||
<li>
|
||||
<b><a href={{ "board/" + board.title.replace('/', '_').replace(' ', '_').replace('?', '') + ".html" }}>{{ board.title }}</a></b>
|
||||
<i>{{ board.description }}</i>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
20
templates/thread.html.j2
Normal file
20
templates/thread.html.j2
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||
</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>
|
23
templates/user.html.j2
Normal file
23
templates/user.html.j2
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ user.name }}</h1>
|
||||
<h3>{{ user.status }}</h3>
|
||||
<p>
|
||||
{% if user.registered %}
|
||||
registered {{ user.registered | fromunixtime }}
|
||||
{% else %}
|
||||
unregistered
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if user.signature %}
|
||||
<hr>
|
||||
<i>{{ user.signature | tohtml }}</i>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
19
templates/users.html.j2
Normal file
19
templates/users.html.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="boards.html">Boards</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<ul>
|
||||
{% for user in users %}
|
||||
<li><a href={{ "user/" + user.name.replace('/', '_').replace(' ', '_').replace('?', '') + ".html" }}>{{ user.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue