Files
pyrom/app/templates/posts/edit.html
2026-05-20 00:07:06 +03:00

30 lines
1.1 KiB
HTML

{%- from 'common/macros.html' import subheader -%}
{%- from 'common/macros.html' import full_post with context -%}
{%- extends 'base.html' -%}
{%- block title -%}editing a post{%- endblock -%}
{%- block content -%}
{%- set nav -%}
<a href="{{get_post_url(post.id, _anchor=true)}}">&larr; Back to thread</a>
{%- endset -%}
{{ subheader("Editing your post", nav)}}
{%- for post in context_prev -%}
<div class="post plank">{{- full_post(post=post, show_toolbar=false, show_reactions=false) -}}</div>
{%- endfor -%}
<div class="plank secondary-bg context-explain">
<span>&uarr;&uarr;&uarr;</span>
<i>Context</i>
<span>&uarr;&uarr;&uarr;</span>
</div>
<form class="post plank" method="POST">
{{- full_post(post=post, is_editing=true, show_toolbar=false, show_reactions=false) -}}
</form>
<div class="plank secondary-bg context-explain">
<span>&darr;&darr;&darr;</span>
<i>Context</i>
<span>&darr;&darr;&darr;</span>
</div>
{%- for post in context_next -%}
<div class="post plank">{{- full_post(post=post, show_toolbar=false, show_reactions=false) -}}</div>
{%- endfor -%}
{%- endblock -%}