Move to settings screen

This commit is contained in:
Jason Zimdars
2025-07-17 17:49:07 -05:00
parent 3ddb5e536e
commit 04df81bc75
2 changed files with 11 additions and 8 deletions
+11 -1
View File
@@ -12,6 +12,16 @@
</nav>
<% end %>
<section class="panel center flex flex-column gap-half margin-block">
<section class="panel unpad borderless center flex flex-column gap-half margin-block-start">
<div class="pad fill-shade margin-block-end-double border-radius border" data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>">
<span>
<button class="btn txt-small" data-action="notifications#attemptToSubscribe">
<%= icon_tag "bell" %>
<span>Receive push notifications on this device</span>
</button>
</span>
</div>
<h2 class="txt-medium txt-uppercase divider">Collections</h2>
<%= render partial: "notifications/settings/collection", collection: @collections, locals: { user: Current.user } %>
</section>
-7
View File
@@ -8,13 +8,6 @@
<div class="header__actions header__actions--end">
<% if Current.user == @user %>
<span data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>">
<button class="btn" data-action="notifications#attemptToSubscribe">
<%= icon_tag "bell" %>
<span class="for-screen-reader">Turn on push notifications</span>
</button>
</span>
<%= link_to edit_user_path(@user), class: "btn flex-item-justify-end" do %>
<%= icon_tag "pencil" %>
<span class="for-screen-reader">Edit</span>