%= search_form_for @search, url: path_to_threads, remote: Discussion.ajaxify do |f| %> <%= hidden_field_tag :sent_item, params[:sent_item] %>
Subject | Initiator | <%= sort_link(@search, :created_at, "Initiated on", {}, {remote: Discussion.ajaxify}) %> | <%= sort_link(@search, :last_posted_at, "Last post at", {}, {remote: Discussion.ajaxify}) %> | <%= sort_link(@search, :total_comments_post, "Total comments post", {}, {remote: Discussion.ajaxify}) %> | |
---|---|---|---|---|---|
<%= link_to_thread thread, link_text: thread.subject.truncate(80, :omission => "... (continued)") %> | <%= thread.initiator.try(:email) %> | <%= thread.created_at %> | <%= thread.last_posted_at %> | <%= thread.total_comments_post %> | <%= link_to_destroy_thread(thread) %> |