Sha256: d4ed657cdcfd528a886b79ea74f463e5c8c6491b1a56409724fac50bdad53dce

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

<p><small><%= link_to "← Back to the thread", simple_discussion.forum_thread_path(@forum_thread) %></small></p>

<h2><%= content_tag :span, "Pinned", class: "text-muted" if @forum_thread.pinned? %> <%= @forum_thread.title %></h2>

<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>
</p>

<br />

<%= content_tag :div, id: dom_id(@forum_post), class: forum_post_classes(@forum_post) do %>
  <div class="card-header">
    <div>
      <%= avatar_tag(@forum_post.user.email) %>
      <strong class="forum-post-user"><%= @forum_post.user.name %></strong>
      <small>
        <%= t('commented_on')%>
        <%= link_to @forum_post.created_at.strftime("%b %d, %Y"), simple_discussion.forum_thread_url(@forum_thread, anchor: "forum_post_#{@forum_post.id}") %>:
      </small>
    </div>
  </div>

  <div class="card-body">
    <%= render "form" %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_discussion-1.3.0 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-1.2.0 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-1.0.1 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-1.0.0 app/views/simple_discussion/forum_posts/edit.html.erb