views: convert helpers to partials.

This commit is contained in:
evazion
2020-01-11 20:01:14 -06:00
parent 153a8339ab
commit abacc8ebb1
12 changed files with 64 additions and 87 deletions

View 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 %>