20 lines
736 B
HTML
20 lines
736 B
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block head %}
|
||
|
<link rel="stylesheet" href="/static/css/messages.css">
|
||
|
<script>let url = "/api/messages/";</script>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<h1>Your messages</h1>
|
||
|
Logged in as {{ username }}
|
||
|
<hr>
|
||
|
<button id="refresh">Refresh</button>
|
||
|
<p id="switch">
|
||
|
<b data-url="/api/messages/" data-id="all" href="javascript:(() => { updateURL('all'); })()">All messages</b> -
|
||
|
<a data-url="/api/messages/?unread" data-id="unread" class="not-bold" href="javascript:(() => { updateURL('unread'); })()">Not responded</a>
|
||
|
</p>
|
||
|
<div id="messages"><i>Loading...</i></div>
|
||
|
<script src="/static/js/messages.js?v={{ config.version_str }}"></script>
|
||
|
{% endblock %}
|