add subscribing and unsubscribing to threads

This commit is contained in:
2025-06-02 20:54:36 +03:00
parent 1e23959e52
commit bd1ba6c087
6 changed files with 94 additions and 22 deletions

View File

@ -6,6 +6,12 @@
%>
<form class="post-edit-form" method="post" action="<%= url or "" %>">
<% render ("views.common.babycode-editor-component", {ta_name = ta_name, prefill = prefill}) %>
<% if not cancel_url then %>
<span>
<input type="checkbox" id="subscribe" name="subscribe" checked>
<label for="subscribe">Subscribe to thread</label>
</span>
<% end %>
<span>
<input type=submit value="<%= save_button_text %>">
<% if cancel_url then %>