Sha256: e8774f51874f1c76ca503113fbe0bea485130fdca0bce1ca9825410ac8c9837a

Contents?: true

Size: 930 Bytes

Versions: 2

Compression:

Stored size: 930 Bytes

Contents

<div class="row">
  <div class="col-md-11">
    <h1><%= icon "fas", "thumb-tack", class: "text-muted" if @forum_thread.pinned? %> <%= @forum_thread.title %></h1>
  </div>

  <% if is_moderator_or_owner?(@forum_thread) %>
    <div class="col-md-1">
      <%= link_to icon("fas","pencil"), simple_discussion.edit_forum_thread_path(@forum_thread),
        class: "text-muted",
        data: { toggle: "tooltip", placement: "left" },
        title: t('edit_this_thread') %>
    </div>
  <% end %>

</div>

<p class="thread-details">
  <strong><%= category_link(@forum_thread.forum_category) %></strong>
  • <%= t('asked_time_ago', time: time_ago_in_words(@forum_thread.created_at), author: @forum_thread.user.name) %>
</p>

<%= render partial: "simple_discussion/forum_posts/forum_post", collection: @forum_thread.forum_posts.includes(:user).sorted %>

<%= render partial: "simple_discussion/forum_posts/form" if user_signed_in? %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_discussion-1.3.0 app/views/simple_discussion/forum_threads/show.html.erb
simple_discussion-1.2.0 app/views/simple_discussion/forum_threads/show.html.erb