Skip to content

Commit dc8e0a2

Browse files
add tooltip to thread / magazine notification switches (#1965)
Co-authored-by: BentiGorlich <benjamin_g@posteo.de>
1 parent 61ada48 commit dc8e0a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/components/notification_switch.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<a class="notification-setting {{ html_classes({
33
active: status is defined and status is same as enum("App\\Enums\\ENotificationStatus").Muted
44
}) }}"
5+
title="{{ 'contentnotification.muted' | trans }}"
56
{% if status is not defined or status is not same as enum("App\\Enums\\ENotificationStatus").Muted %}
67
data-html-refresh-cssclass-param="notification-switch" data-action="html-refresh#linkCallback"
78
href="{{ path('change_notification_setting', { 'subject_id': target.id, 'subject_type': get_notification_settings_subject_type(target), 'status': enum("App\\Enums\\ENotificationStatus").Muted.value }) }}"
@@ -12,6 +13,7 @@
1213
<a class="notification-setting {{ html_classes({
1314
active: status is not defined or status is same as enum("App\\Enums\\ENotificationStatus").Default
1415
}) }}"
16+
title="{{ 'contentnotification.default' | trans }}"
1517
{% if status is not defined or status is not same as enum("App\\Enums\\ENotificationStatus").Default %}
1618
data-html-refresh-cssclass-param="notification-switch" data-action="html-refresh#linkCallback"
1719
href="{{ path('change_notification_setting', { 'subject_id': target.id, 'subject_type': get_notification_settings_subject_type(target), 'status': enum("App\\Enums\\ENotificationStatus").Default.value }) }}"
@@ -22,6 +24,7 @@
2224
<a class="notification-setting {{ html_classes({
2325
active: status is defined and status is same as enum("App\\Enums\\ENotificationStatus").Loud
2426
}) }}"
27+
title="{{ 'contentnotification.loud' | trans }}"
2528
{% if status is not defined or status is not same as enum("App\\Enums\\ENotificationStatus").Loud %}
2629
data-html-refresh-cssclass-param="notification-switch" data-action="html-refresh#linkCallback"
2730
href="{{ path('change_notification_setting', { 'subject_id': target.id, 'subject_type': get_notification_settings_subject_type(target), 'status': enum("App\\Enums\\ENotificationStatus").Loud.value }) }}"

translations/messages.en.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,3 +1126,6 @@ modlog_type_entry_lock: Thread locked
11261126
modlog_type_entry_unlock: Thread unlocked
11271127
modlog_type_post_lock: Microblog locked
11281128
modlog_type_post_unlock: Microblog unlocked
1129+
contentnotification.muted: Mute | get no notifications
1130+
contentnotification.default: Default | get notifications according to your default settings
1131+
contentnotification.loud: Loud | get all notifications

0 commit comments

Comments
 (0)