mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: show notification box when adding a comment
Currently, the "Enable notifications" checkbox is only shown when editing a comment. We should also show it when a new comment is about to be added. Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
65ba735f18
commit
36fd58d7a6
2 changed files with 26 additions and 3 deletions
|
@ -33,7 +33,7 @@ Routes:
|
|||
<button type="submit" class="button">
|
||||
{{ ("Save" if comment else "Add Comment") | tr }}
|
||||
</button>
|
||||
{% if comment and not request.user.notified(pkgbase) %}
|
||||
{% if not request.user.notified(pkgbase) %}
|
||||
<span class="comment-enable-notifications">
|
||||
<input type="checkbox" name="enable_notifications"
|
||||
id="id_enable_notifications" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue