Sha256: 9cda5d2f999b4c21d3ffa89adb4026d069429388a5690dea19a6d635956d81ac

Contents?: true

Size: 1022 Bytes

Versions: 10

Compression:

Stored size: 1022 Bytes

Contents

<%= cache support_thread do %>
  <div class="support-thread">
    <div class="flex flex-wrap">
      <div class="flex-grow mb-2">
            <%= link_to help_center.support_thread_path(support_thread) do %>
        <h4>
           <%= support_thread.title %>
        </h4>
        <p class="text-gray-500 hover:text-gray-700"><%= truncate(support_thread.content.to_plain_text, length: 200) %></p>
        <div class="thread-details mt-2">
            <%= t('content_updated_at', update_time: time_ago_in_words(support_thread.created_at)) %>
        </div>
        <% end %>
      </div>
     <% if HelpCenter.enable_comments %>
      <div class="sm:w-1/6 pr-4 pl-4 text-center">
        <%= link_to help_center.support_thread_path(support_thread), class: "thread-posts-count" do %>
          <span class="count"><%= support_thread.support_posts_count %></span>
          <small><%= t("post", count: support_thread.support_posts_count) %></small>
        <% end %>
      </div>
    <% end %>
    </div>
  </div>
<% end %>

Version data entries

10 entries across 5 versions & 1 rubygems

Version Path
help_center-0.1.0 app/views/help_center/support_threads/_support_thread.html.erb
help_center-0.1.0 app/views/help_center/support_categories/_support_thread.html.erb
help_center-0.0.9 app/views/help_center/support_categories/_support_thread.html.erb
help_center-0.0.9 app/views/help_center/support_threads/_support_thread.html.erb
help_center-0.0.8 app/views/help_center/support_threads/_support_thread.html.erb
help_center-0.0.8 app/views/help_center/support_categories/_support_thread.html.erb
help_center-0.0.7 app/views/help_center/support_threads/_support_thread.html.erb
help_center-0.0.7 app/views/help_center/support_categories/_support_thread.html.erb
help_center-0.0.6 app/views/help_center/support_categories/_support_thread.html.erb
help_center-0.0.6 app/views/help_center/support_threads/_support_thread.html.erb