Sha256: e143844a94fd85f8fb009fb86f80bc28f675534a84a16a6401a8ccadaaa23602
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 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?\n" : \ 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~ |