Sha256: 838c12b549a2cc765614c90ea6c8a7f3ae35fbb954ae515a3591ea691a779b9b
Contents?: true
Size: 972 Bytes
Versions: 2
Compression:
Stored size: 972 Bytes
Contents
<% # Clients of this partial must supply the following variables: # thread %> <% can_subscribe = thread.can_subscribe?(@commontator) %> <% can_edit = thread.can_be_edited_by?(@commontator) %> <% if can_subscribe %> <span id="thread_<%= thread.id.to_s %>_subscription_span" class="thread_subscription"> <%= render :partial => 'commontator/subscriptions/link', :locals => {:thread => thread} %> </span> <% end %> <% if can_edit %> <% is_closed = thread.is_closed? <% close_string = is_closed ? "reopen" : "close" %> <%= link_to close_string.capitalize, polymorphic_path([close_string, thread]), :confirm => (!is_closed ? \ 'Are you sure you want to close this thread' : nil), :method => :put, :id => "thread_#{thread.id.to_s}_#{close_string}_link", :class => "thread_#{close_string}_link", :remote => true %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.4.1 | app/views/commontator/threads/_actions.html.erb~ |
commontator-0.3.10 | app/views/commontator/threads/_actions.html.erb~ |