wiki_pages/show: refactor post previews.

* Increase number of previews from 4 to 8.
* Eliminate wiki page post set classes.
This commit is contained in:
evazion
2020-01-12 18:35:17 -06:00
parent 40711e1d4f
commit 50c6840be3
5 changed files with 6 additions and 31 deletions

View File

@@ -1,15 +0,0 @@
module PostSetPresenters
class WikiPage < PostSetPresenters::Post
def posts
@post_set.posts
end
def post_previews_html(template)
result = super(template)
if result =~ /Nobody here but us chickens/
result = ""
end
result.html_safe
end
end
end