Favorite groups

This commit is contained in:
Toks
2015-06-23 15:25:54 -04:00
parent e1dc51e026
commit 04fa5596e2
27 changed files with 574 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
module PostSetPresenters
class FavoriteGroup < PostSetPresenters::Pool
def post_previews_html(template)
html = ""
if posts.empty?
return template.render("post_sets/blank")
end
posts.each do |post|
html << PostPresenter.preview(post, :favgroup_id => post_set.pool.id)
end
html.html_safe
end
end
end