add user settings

This commit is contained in:
2025-07-02 02:21:53 +03:00
parent bd556d102b
commit dde1139eed
5 changed files with 158 additions and 4 deletions

View File

@ -76,7 +76,7 @@
{{babycode_editor_component(ta_name, prefill = prefill)}}
{% if not cancel_url %}
<span>
<input type="checkbox" id="subscribe" name="subscribe" {{ "checked" if session['subscribe_by_default'] else "" }}>
<input type="checkbox" id="subscribe" name="subscribe" {{ "checked" if session.get('subscribe_by_default', default=true) else "" }}>
<label for="subscribe">Subscribe to thread</label>
</span>
{% endif %}