Sha256: 9bd4c634e7fbf8a0dd348707f68c8844b55e53fe9ae98b00f4eb3c81b5e6d158
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
<% # Clients of this partial must supply the following variables: # thread # user %> <% can_subscribe = thread.can_subscribe?(user) %> <% can_edit = thread.can_be_edited_by?(user) %> <span id="thread_<%= thread.id.to_s %>_header_span" class="thread_header"> <%= t "commontator.thread.status.#{thread.is_closed? ? 'closed' : 'open'}" %> </span> <span id="thread_<%= thread.id.to_s %>_actions_span" class="thread_actions"> <% if can_subscribe %> <span id="thread_<%= thread.id.to_s %>_subscription_span" class="thread_subscription"> <%= render :partial => 'commontator/subscriptions/link', :locals => {:thread => thread, :user => user} %> </span> <% end %> <% if can_edit %> <% is_closed = thread.is_closed? %> <% close_string = is_closed ? 'reopen' : 'close' %> <%= link_to t("commontator.thread.actions.#{close_string}"), commontator.polymorphic_path([close_string, thread]), :confirm => (!is_closed ? t('commontator.thread.actions.confirm_close') : nil), :method => :put, :id => "thread_#{thread.id.to_s}_#{close_string}_link", :class => "thread_#{close_string}_link", :remote => true %> <% end %> </span> <div id="thread_<%= thread.id.to_s %>_comment_list_div" class="thread_comment_list"> <%= render :partial => 'commontator/comments/list', :locals => {:comments => thread.ordered_comments, :user => user} %> </div> <% if thread.is_closed? %> <p><%= t 'commontator.thread.status.closed_by' %></p> <% elsif !user %> <p><%= t 'commontator.require_login' %>.</p> <% else %> <div id="thread_<%= thread.id %>_new_comment_div" class="thread_new_comment"></div> <span id="thread_<%= thread.id %>_new_comment_link_span" class="thread_new_comment_link"> <%= link_to t('commontator.comment.actions.new'), commontator.new_thread_comment_path(thread), :remote => true %> </span> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-4.3.0 | app/views/commontator/threads/_show.html.erb |