<% title "Comment Settings" %>

Comment Settings

<% if @notification_subscription.persisted? %>

Don't want notifications for this thread?

This will mute all notifications for this comment and any of your comments in this chain.

<% else %>

All notifications for this comment and any of your comments in the thread are currently muted.

<% end %> <%= form_for(@notification_subscription, url: "/notification_subscriptions/Comment/#{@comment.id}", method: "post", html: { class: "mute-form" }) do |f| %> "> <%= f.submit @notification_subscription.persisted? ? "MUTE NOTIFICATIONS" : "🔕 NOTIFICATIONS MUTED (click to unmute)", class: "cta pill #{@notification_subscription.persisted? ? 'mute' : 'unmute'}" %> <% end %> <% if NotificationSubscription.where(user_id: current_user, notifiable_type: "Article", notifiable_id: @comment.commentable_id, config: "all_comments").any? %>

You are still subscribed to all comments in the broader thread, which will mean you will still receive notifications for replies to this comment.

<%= form_for(@notification_subscription, url: "/notification_subscriptions/Article/#{@comment.commentable_id}", method: "post", html: { class: "mute-form" }) do |f| %> <%= f.submit "UNSUBSCRIBE FROM PARENT POST", class: "cta pill mute" %> <% end %> <% end %>