posts: inline partials in posts/index template.

Make the posts/index template easier to read by putting everything in
one file, instead of splitting it up into a bunch of partials that
aren't used anywhere else.
This commit is contained in:
evazion
2021-12-07 20:04:34 -06:00
parent c94fdef3b2
commit 7e57ae7d3c
9 changed files with 192 additions and 203 deletions

View File

@@ -8,15 +8,11 @@ module PostsHelper
end
def missed_post_search_count_js(tags)
return unless reportbooru_enabled?
sig = generate_reportbooru_signature(tags)
render "posts/partials/index/missed_search_count", sig: sig
end
def post_search_count_js(tags)
return unless reportbooru_enabled?
sig = generate_reportbooru_signature("ps-#{tags}")
render "posts/partials/index/search_count", sig: sig
end