Sha256: bd29a9e9bf59c9f5c08e538177155f6a9e309c285e62cd0ffaccd1fe83dcd670

Contents?: true

Size: 696 Bytes

Versions: 8

Compression:

Stored size: 696 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

8 entries across 8 versions & 1 rubygems

Version Path
thredded-0.0.10 app/views/thredded/posts/_post.html.erb
thredded-0.0.9 app/views/thredded/posts/_post.html.erb
thredded-0.0.8 app/views/thredded/posts/_post.html.erb
thredded-0.0.7 app/views/thredded/posts/_post.html.erb
thredded-0.0.6 app/views/thredded/posts/_post.html.erb
thredded-0.0.5 app/views/thredded/posts/_post.html.erb
thredded-0.0.4 app/views/thredded/posts/_post.html.erb
thredded-0.0.3 app/views/thredded/posts/_post.html.erb