mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-08-20 09:04:28 +00:00
Useful when app is at a non-root path and we're not handling top-level /robots.txt requests.
21 lines
777 B
HTML
21 lines
777 B
HTML
{%- import "utils.html" as utils with context -%}
|
|
{% extends "layout.html" %}
|
|
{% block head %}
|
|
<meta name="robots" content="noindex, nofollow">
|
|
{% endblock %}
|
|
{% block main_tag %} class="main-flex"{% endblock %}
|
|
{% block content %}
|
|
<div class="centered">
|
|
<div>
|
|
{% if error %}
|
|
<p class="primary-color">Invalid password.</p>
|
|
{% endif %}
|
|
<form class="form" action="{{ BASE_URL }}/admin/login" method="POST">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
|
<input type="hidden" name="redirect" value="{{ redirect }}">
|
|
<input type="password" placeholder="password" name="password" autofocus>
|
|
<input type="submit" value="login">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|