Sha256: 69bf16404c9be18216e444c29146e3f4940cffb0d81267092d6968efd437fe83

Contents?: true

Size: 650 Bytes

Versions: 9

Compression:

Stored size: 650 Bytes

Contents

<% # Clients of 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]),
            :confirm => (is_subscribed ? t('commontator.subscription.actions.confirm_unsubscribe') : \
                          nil),
            :method => :put,
            :id => "thread_#{thread.id.to_s}_#{sub_string}_link",
            :class => "thread_#{sub_string}_link",
            :remote => true %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
commontator-4.11.1 app/views/commontator/subscriptions/_link.html.erb
commontator-4.11.0 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.5 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.4 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.3 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.2 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.1 app/views/commontator/subscriptions/_link.html.erb
commontator-4.10.0 app/views/commontator/subscriptions/_link.html.erb
commontator-4.9.0 app/views/commontator/subscriptions/_link.html.erb