Sha256: 5459dc7961e23ea04e51e9ad5c71bf7abb495a678d12d3404010456fa034c375

Contents?: true

Size: 663 Bytes

Versions: 1

Compression:

Stored size: 663 Bytes

Contents

<% post = Thredded::PostDecorator.new(post) %>
<%= content_tag_for(:article, post) do %>
  <% cache post do %>
    <header>
      <%= image_tag post.gravatar_url, class: 'avatar' %>
      <cite>
        <%= post.user_name %>
        <%= post.created_at_timeago %>
      </cite>
    </header>

    <div class="content">
      <p><%= post.filtered_content %></p>
      <ul class="attachments"><%= render post.attachments %></ul>
    </div>
  <% end %>

  <footer>
    <% if can? :edit, post.original %>
      <%= link_to 'edit post',
        edit_messageboard_topic_post_path(messageboard, topic, post),
        class: 'edit' %>
    <% end %>
  </footer>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thredded-0.0.1 app/views/thredded/posts/_post.html.erb