fix up title and bring back post status

This commit is contained in:
edshot99 2024-12-08 05:33:34 -06:00
parent c5edb7fa41
commit 1030efab9d

View File

@ -57,8 +57,8 @@ class PostsDecorator < ApplicationDecorator
favs = template.tag.span("#{post.fav_count}", class: "favorites") favs = template.tag.span("#{post.fav_count}", class: "favorites")
comments = template.tag.span "C#{post.visible_comment_count(CurrentUser)}", class: "comments" comments = template.tag.span "C#{post.visible_comment_count(CurrentUser)}", class: "comments"
rating = template.tag.span(post.rating.upcase, class: "rating") rating = template.tag.span(post.rating.upcase, class: "rating")
# status = template.tag.span(status_flags.join, class: "extras") status = template.tag.span(status_flags.join, class: "extras")
template.tag.div score + favs + comments + rating, class: "desc" template.tag.div title + score + favs + comments + rating + status, class: "desc"
end end
def preview_html(t, options = {}) def preview_html(t, options = {})