show title on pool (and other) pages too

This commit is contained in:
edshot99 2025-01-18 13:17:44 -06:00
parent 459d22ee38
commit 744d6e6d11

View File

@ -92,13 +92,15 @@ module PostsHelper
status_flags << "U" if post.is_pending?
status_flags << "F" if post.is_flagged?
title = tag.span(post.title, class: "title")
title += tag.br if post.title.present?
post_score_icon = "#{'↑' if post.score > 0}#{'↓' if post.score < 0}#{'↕' if post.score == 0}"
score = tag.span("#{post_score_icon}#{post.score}", class: "score #{score_class(post.score)}")
favs = tag.span("#{post.fav_count}", class: "favorites")
comments = tag.span "C#{post.visible_comment_count(CurrentUser)}", class: "comments"
rating = tag.span(post.rating.upcase, class: "rating")
# status = tag.span(status_flags.join, class: "extras")
tag.div score + favs + comments + rating, class: "desc"
status = tag.span(status_flags.join, class: "extras")
tag.div title + score + favs + comments + rating + status, class: "desc"
end
def user_record_meta(user)