crablog/static/admin/index.tera
2018-10-24 12:12:16 +08:00

27 lines
504 B
Plaintext

{% if flash %}
<p>{{ flash.name }}: {{ flash.message }}</p>
{% endif %}
<h2>login as: {{ admin.username }}</h2>
<a href="/admin/article/new">new article</a>
<h2>Article List</h2>
<ul>
{% for article in articles %}
<li>
<a href="/admin/article/{{ article.id }}">{{ article.title }}</a>
</li>
{% endfor %}
</ul>
<h2>Change Password</h2>
<form action="/admin/password" method="post">
<input type="password" name="password" placeholder="new password" required>
<button>change</button>
</form>