Add redundant link to post search on wiki pages

This should make it more clear that the ~6 posts displayed are just a
sample, not all of them.
This commit is contained in:
Toks
2014-01-17 18:58:47 -05:00
parent a9895ea212
commit 200ce6e150

View File

@@ -38,7 +38,8 @@ module WikiPagesHelper
html = '<div id="wiki-page-posts">'
if Post.fast_count(wiki_page.title) > 0
html << "<h2>Posts</h2>"
full_link = link_to("view all", posts_path(:tags => wiki_page.title))
html << "<h2>Posts (#{full_link})</h2>"
html << wiki_page.post_set.presenter.post_previews_html(self)
end