views: convert helpers to partials.
This commit is contained in:
7
app/views/wiki_pages/_posts.html.erb
Normal file
7
app/views/wiki_pages/_posts.html.erb
Normal file
@@ -0,0 +1,7 @@
|
||||
<% if wiki_page.tag.present? && wiki_page.tag.post_count > 0 %>
|
||||
<div id="wiki-page-posts">
|
||||
<h2>Posts (<%= link_to "view all", posts_path(tags: wiki_page.title) %>)</h2>
|
||||
|
||||
<%= wiki_page.post_set.presenter.post_previews_html(self) %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user