Sha256: 844435d006d35dd6b9a4901c91cf002c2eec0c984de87ff49b9474d1cf5cd9e5

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

<%#
  Views that use this partial must supply the following variables:
  thread
  user
%>

<% is_subscribed = !!thread.subscription_for(user) %>
<% sub_string = is_subscribed ? 'unsubscribe' : 'subscribe' %>
<%= link_to t("commontator.subscription.actions.#{sub_string}"),
            commontator.polymorphic_path([sub_string.to_sym, thread]),
            method: :put,
            id: "commontator-thread-#{thread.id}-#{sub_string}",
            class: sub_string,
            remote: true %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commontator-7.0.1 app/views/commontator/subscriptions/_link.html.erb
commontator-7.0.0 app/views/commontator/subscriptions/_link.html.erb
commontator-6.3.2 app/views/commontator/subscriptions/_link.html.erb