1
0
Fork 1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.9 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<title>Morsel - {{ name }}</title>
<link rel="stylesheet" href="/static/morsel.css" />
<link rel="stylesheet" href="/static/theme.css" />
</head>
<body>
{% include "logo.html" %}
{% include "nav.html" %}
<div class="feed_panel panel">
<h2>{{ bname }}</h2>
<p class="extra-room">Moderated by: <span class="mods">{{ bmods }}</span></p>
<p class="extra-room">{{ bdesc }}</p>
{% if subbed -%}
<a href="/b/{{ bname }}?unsubscribe" class="red abtn">Unsubscribe from this board</a>
{% else -%}
<a href="/b/{{ bname }}?subscribe" class="mods abtn">Subscribe to this board</a>
{% endif -%}
<hr/>
{% if subbed -%}
<form action="/postto/{{ bname }}" method="POST">
<table width="100%"><tr>
<td width="64px">
<img src="/avatar/{{ name }}">
</td>
<td>
<p>Posts now support Markdown. <a href="https://www.markdownguide.org/" class="mods">Here's a guide on that.</a></p>
<textarea
class="entry"
placeholder="Share your thoughts! Type here."
name="postbody"
></textarea>
<div class="buttons">
<input type="submit" value="Post!" />
</div>
</td>
</tr></table>
</form>
<hr/>
{% endif -%}
<h2>Recent Posts</h2>
<table width="100%" cellspacing="0px">
{% for post in posts -%}
<tr class="post">
<td width="80px" align="right">
<img src="/avatar/{{ post['author'] }}" /><br/>
</td>
<td>
<h3><a href="/u/{{ post['author'] }}" class="username {% if post['ownerblog'] %}owner{% endif %}">{{ post['author'] }}</a> says...</h3>
<a href="/b/{{bname}}/{{post['id']}}" class="notsoobviouslink"><p>{{ post['content'] | safe }}</p></a>
{% if "replies" in post %}
<details>
<summary>View replies</summary>
{% for reply in post['replies'] %}
<table width="100%">
<tr class="post">
<td align="right" width="56px" style="min-width: 56px">
<img src="/avatar/{{reply['author']}}" width="48px" alt="reply['author']" />
</td>
<td>
<h3><a class="username" href="/u/{{reply['author']}}">{{reply['author']}}</a></h3>
{{reply['content']|safe}}
</td>
</tr>
</table>
{% endfor %}
</details>
{% endif %}
</a>
</td>
<td width="24px">
{% if post['author'] == name or ismod -%}
<a class="abtn red" href="/del/{{bname}}/{{post['id']}}">X</a>
{% endif -%}
</td>
</tr>
{% endfor -%}
</table>
</div>
{% include "nav.html" %}
</body>
</html>