Files
fizzy/app/views/notifications/settings/_push_notifications.html.erb
T

27 lines
1.5 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.
<div class="notifications__status panel fill-shade center" data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>" data-notifications-enabled-class="notifications--on">
<h2 class="notifications__on-message txt-medium">Push notifications are ON</h2>
<h2 class="notifications__off-message txt-medium">Push notifications are OFF</h2>
<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>
</div>