Sha256: dbda3ec7203a5b808b02d6d53591fd2dfb70e432a9c5fc6095b4c88cfe1e31b8

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

<% cache [current_user, 'post', post] do %>
  <% post = Thredded::PostDecorator.new(post) %>

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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