Sha256: 26dc4e8e7e826e4ad6673efcbcb9e29a1ce8998b6d9092c315af2f6c7245edc2

Contents?: true

Size: 973 Bytes

Versions: 5

Compression:

Stored size: 973 Bytes

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>
  • Asked <%= time_ago_in_words @forum_thread.created_at %> by <%= @forum_thread.user.name %>
</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> 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-block">
    <%= render "form" %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_discussion-0.9.4 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-0.9.3 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-0.9.2 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-0.9.1 app/views/simple_discussion/forum_posts/edit.html.erb
simple_discussion-0.9.0 app/views/simple_discussion/forum_posts/edit.html.erb