Sha256: 5287a07664716edec5b6e97cee9b41186cf46da16436ceb15dfa73925901d08e
Contents?: true
Size: 943 Bytes
Versions: 4
Compression:
Stored size: 943 Bytes
Contents
<%# @param post [Thredded::PostView] %> <%= content_tag :article, id: dom_id(post), class: 'thredded--post' do %> <header> <%= image_tag post.avatar_url, class: 'thredded--post--avatar' if post.user %> <h2 class="thredded--post--user"><%= user_link post.user %></h2> <p class="thredded--post--created-at"><%= time_ago post.created_at %></p> </header> <div class="thredded--post--content"> <% cache [post, 'content'], expires_in: 1.week do %> <%= post.filtered_content(self) %> <% end %> </div> <% if post.can_update? %> <%= link_to t('thredded.posts.edit'), post.edit_path, class: 'thredded--post--edit' %> <% end %> <% if post.can_destroy? %> <%= link_to t('thredded.posts.delete'), post.destroy_path, method: :delete, class: 'thredded--post--delete', data: { confirm: I18n.t('thredded.posts.delete_confirm') } %> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems