mirror of
https://github.com/YGGverse/mb.git
synced 2026-03-31 09:05:28 +00:00
37 lines
No EOL
1.3 KiB
Text
37 lines
No EOL
1.3 KiB
Text
{% extends "layout" %}
|
|
{% block content %}
|
|
{% if token %}
|
|
<form action="/submit" method="post">
|
|
<textarea name="message" placeholder="Enter your message..."></textarea>
|
|
<input type="hidden" name="token" value="{{ token }}" />
|
|
<input type="submit" value="Submit" />
|
|
</form>
|
|
{% endif %}
|
|
{% if posts %}
|
|
{% for post in posts %}
|
|
<div>
|
|
<a name="{{ post.id }}"></a>
|
|
<p>{{ post.message | url | linebreaksbr | safe }}</p>
|
|
<div>
|
|
<ul>
|
|
<li><a href="{{ post.href.post }}" title="Created">{{ post.time }}</a></li>
|
|
</ul>
|
|
{% if post.href.delete %}
|
|
<div>
|
|
<a rel="nofollow" href="{{ post.href.delete }}" title="Delete">Delete</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div>Nothing.</div>
|
|
{% endif %}
|
|
{% if next %}<a href="{{ next }}">Next</a>{% endif %}
|
|
{% if back %}<a href="{{ back }}">Back</a>{% endif %}
|
|
{% if total %}
|
|
<span>
|
|
Page {{ page }} / {{ pages }} ({{ total }} post{{ total | pluralize(plural="s") }} total)
|
|
</span>
|
|
{% endif %}
|
|
{% endblock content %} |