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