Files
fizzy/app/views/notifications/settings/_push_notifications.html.erb
T
2026-02-02 12:36:48 +01:00

32 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<section class="notifications__status settings__section panel fill-shade center" data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>" data-notifications-enabled-class="notifications--on">
<heading>
<h2 class="txt-medium">
Push notifications are
<span class="notifications__on-message">ON</span>
<span class="notifications__off-message">OFF</span>
</h2>
</heading>
<div class="margin-block-start-half" data-notifications-target="subscribeButton" hidden>
<button class="btn txt-small" data-action="notifications#attemptToSubscribe">
<%= icon_tag "bell" %>
<span>Turn ON push notifications on this device</span>
</button>
</div>
<details class="margin-block-start-half" data-notifications-target="explainer">
<summary class="btn txt-x-small">
<%= icon_tag "lifebuoy" %>
<span class="notifications__off-message">Help me fix this</span>
<span class="notifications__on-message">Not receiving notifications?</span>
</summary>
<div class="notifications-help__explainer fill-white margin-block-start border-radius border txt-align-start">
<p class="margin-none-block-start notifications__on-message">When push notifications arent working, this can usually be fixed by checking your notification settings to make sure theyre allowed.</p>
<%= render partial: "notifications/settings/browser" %>
<%= render partial: "notifications/settings/system" %>
<%= render partial: "notifications/settings/install" %>
</div>
</details>
</section>