Files
danbooru/app/presenters/post_set_presenters/base.rb
Toks 4001689e28 fixes #1450
Additionally:
* Adds basic negated id metatag.
* Post set presenter now uses the post set's tag string, not the
parameter from the URL.
2013-04-27 11:13:57 -04:00

22 lines
382 B
Ruby

module PostSetPresenters
class Base
def posts
raise NotImplementedError
end
def post_previews_html(template)
html = ""
if posts.empty?
return template.render("post_sets/blank")
end
posts.each do |post|
html << PostPresenter.preview(post, :tags => @post_set.tag_string)
end
html.html_safe
end
end
end