add subscribing and unsubscribing, add post editing

This commit is contained in:
2026-04-28 19:03:29 +03:00
parent f3acf64e6d
commit ff2c6606f8
8 changed files with 219 additions and 33 deletions

View File

@@ -0,0 +1,24 @@
{%- from 'common/macros.html' import full_post with context -%}
{%- extends 'base.html' -%}
{%- block title -%}editing a post{%- endblock -%}
{%- block content -%}
{%- 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 -%}