Sha256: 74cc31293e1468b2e921f793c4fbef3b86721fa8deb8cf1ff94af481a7832abd
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
<% # Clients of this partial must supply the following variable: # thread %> <% is_subscribed = thread.is_subscribed?(@commontator) %> <% sub_string = is_subscribed ? "unsubscribe" : "subscribe" %> <%= link_to sub_string.capitalize, polymorphic_path([sub_string, thread]), :confirm => (is_subscribed ? \ "Are you sure you want to unsubscribe from this thread?" : \ 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-0.4.1 | app/views/commontator/subscriptions/_link.html.erb |
commontator-0.3.10 | app/views/commontator/subscriptions/_link.html.erb |