Sha256: 20fe4eb0c325072de69aa9ea51d4e9ae831eb654af6e860ab97b94841b69f145

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 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 ' + \
                          commontable_name(thread) + '?\n" : nil),
            :method => :put,
            :remote => true %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commontator-0.4.1 app/views/commontator/subscriptions/_subscription_link.html.erb~
commontator-0.3.10 app/views/commontator/subscriptions/_subscription_link.html.erb~