Sha256: d572a6320fe466a65bc73f1684c56eb0d7800412fab20a218ed1c44553e06dea

Contents?: true

Size: 487 Bytes

Versions: 10

Compression:

Stored size: 487 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, thread]),
            method: :put,
            id: "commontator-thread-#{thread.id}-#{sub_string}",
            class: sub_string,
            remote: true %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
commontator-6.3.1 app/views/commontator/subscriptions/_link.html.erb
commontator-6.3.0 app/views/commontator/subscriptions/_link.html.erb
commontator-6.2.1 app/views/commontator/subscriptions/_link.html.erb
commontator-6.2.0 app/views/commontator/subscriptions/_link.html.erb
commontator-6.1.1 app/views/commontator/subscriptions/_link.html.erb
commontator-6.1.0 app/views/commontator/subscriptions/_link.html.erb
commontator-6.0.1 app/views/commontator/subscriptions/_link.html.erb
commontator-6.0.0 app/views/commontator/subscriptions/_link.html.erb
commontator-6.0.0.pre.2 app/views/commontator/subscriptions/_link.html.erb
commontator-6.0.0.pre.1 app/views/commontator/subscriptions/_link.html.erb