mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
wrap the notification toggle like the other buttons
This commit is contained in:
parent
a6d60562f5
commit
5eeb2708ca
5 changed files with 25 additions and 15 deletions
|
@ -1252,7 +1252,10 @@ div.navbar {
|
|||
.comment .comment_actions .hide_button a {
|
||||
padding: 5px 15px;
|
||||
}
|
||||
.comment .comment_actions .notif_toggle {
|
||||
.comment .comment_actions .notify_toggle {
|
||||
display: inline-block;
|
||||
}
|
||||
.comment .comment_actions .notify_toggle a {
|
||||
text-decoration: none;
|
||||
font-size: 87%;
|
||||
padding: 5px 15px;
|
||||
|
@ -1704,7 +1707,7 @@ form h5 {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.notif_toggle {
|
||||
.notify_toggle {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
|
|
|
@ -918,10 +918,13 @@ div.navbar {
|
|||
}
|
||||
}
|
||||
|
||||
.notif_toggle {
|
||||
text-decoration: none;
|
||||
font-size: 87%;
|
||||
padding: 5px 15px;
|
||||
.notify_toggle {
|
||||
display: inline-block;
|
||||
a {
|
||||
text-decoration: none;
|
||||
font-size: 87%;
|
||||
padding: 5px 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1408,7 +1411,7 @@ form {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.notif_toggle {
|
||||
.notify_toggle {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a href="{{ url_for('post.post_reply_notification', post_reply_id=comment['comment'].id) }}" rel="nofollow"
|
||||
class="notif_toggle fe {{ 'fe-bell' if comment['comment'].notify_new_replies(current_user.id) else 'fe-no-bell' }}"
|
||||
class="fe {{ 'fe-bell' if comment['comment'].notify_new_replies(current_user.id) else 'fe-no-bell' }}"
|
||||
hx-post="{{ url_for('post.post_reply_notification', post_reply_id=comment['comment'].id) }}" hx-trigger="click throttle:1s" hx-swap="outerHTML"
|
||||
title="{{ _('Notify about replies') }}" aria-label="{{ _('Notify about replies') }}"></a>
|
|
@ -46,9 +46,11 @@
|
|||
<a href='#'><span class="fe fe-collapse"></span></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if current_user.is_authenticated and current_user.verified and current_user.id == comment['comment'].author.id %}
|
||||
{% include "post/_reply_notification_toggle.html" %}
|
||||
{% endif %}
|
||||
<div class="notify_toggle">
|
||||
{% if current_user.is_authenticated and current_user.verified and current_user.id == comment['comment'].author.id %}
|
||||
{% include "post/_reply_notification_toggle.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<a href="{{ url_for('post.post_reply_options', post_id=post.id, comment_id=comment['comment'].id) }}" class="comment_actions_link" rel="nofollow"><span class="fe fe-options" title="Options"> </span></a>
|
||||
</div>
|
||||
{% if comment['replies'] %}
|
||||
|
|
|
@ -107,9 +107,11 @@
|
|||
<a href='#'><span class="fe fe-collapse"></span></a>
|
||||
{% endif -%}
|
||||
</div>
|
||||
{% if current_user.is_authenticated and current_user.verified -%}
|
||||
{% include "post/_reply_notification_toggle.html" -%}
|
||||
{% endif -%}
|
||||
<div class="notify_toggle">
|
||||
{% if current_user.is_authenticated and current_user.verified -%}
|
||||
{% include "post/_reply_notification_toggle.html" -%}
|
||||
{% endif -%}
|
||||
</div>
|
||||
<a href="{{ url_for('post.post_reply_options', post_id=post.id, comment_id=comment['comment'].id) }}" class="comment_actions_link" rel="nofollow noindex" aria-label="{{ _('Comment options') }}"><span class="fe fe-options" title="Options"> </span></a>
|
||||
</div>
|
||||
{% if comment['replies'] -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue