Sha256: e7f1a7b61a5fd98788411d908f7cb65673fc17e435ee31585d330f3165b6d860
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-5.1.0 | app/views/commontator/subscriptions/_link.html.erb |
commontator-5.0.0 | app/views/commontator/subscriptions/_link.html.erb |