replace uploader information post previews and comment listing, rename tagger to top tagger

This commit is contained in:
Albert Yi
2018-03-27 10:49:12 -07:00
parent ce7e31325c
commit 6c790c61d3
4 changed files with 18 additions and 7 deletions

View File

@@ -85,7 +85,6 @@ class PostPresenter < Presenter
data-has-sound="#{post.has_tag?('video_with_sound|flash_with_sound')}"
data-tags="#{h(post.tag_string)}"
data-pools="#{post.pool_string}"
data-uploader="#{h(post.uploader_name)}"
data-approver-id="#{post.approver_id}"
data-rating="#{post.rating}"
data-width="#{post.image_width}"
@@ -103,6 +102,12 @@ class PostPresenter < Presenter
data-is-favorited="#{post.favorited_by?(CurrentUser.user.id)}"
}
if CurrentUser.is_moderator?
attributes += %{
data-uploader="#{h(post.uploader_name)}"
}
end
if post.visible?
attributes += %{
data-md5="#{post.md5}"