add user posts view

This commit is contained in:
2026-04-29 02:06:41 +03:00
parent afdf182bd1
commit d5e627ed7f
6 changed files with 81 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
{% from 'common/macros.html' import infobox with context %}
{% from 'common/macros.html' import subheader %}
{%- extends 'base.html' -%}
{%- block title -%}log in{%- endblock -%}
@@ -7,9 +8,7 @@ Welcome back! No account yet? <a href="{{url_for('users.sign_up')}}">Sign up</a>
{%- endset -%}
{{ subheader('Log in', welcome)}}
{%- if request.args.get('error') -%}
<div class="infobox plank critical">
{{request.args.get('error')}}
</div>
{{infobox(request.args.error, InfoboxKind.ERROR)}}
{%- endif -%}
<form class="plank primary-bg full-width" method="POST">
<label for="username">Username</label>