Back to Frontend

TopComment.Scala

discussion/app/views/fragments/topComment.scala.html

latest909 B
Original Source

@import conf.Configuration @import discussion.model.Comment @import views.support.{BulletCleaner, GuDateFormatLegacy, InBodyLinkCleaner, TruncateCleaner, withJsoup} @(comment: Comment, isClosedForRecommendation: Boolean = true, isResponse: Boolean = false)(implicit request: RequestHeader) @* Please don't use the isTopComment switch - we've kept it pretty clean without it, but just need a solution for IDs *@

Guardian Pick

@withJsoup(BulletCleaner(comment.body))( InBodyLinkCleaner("in body link"), TruncateCleaner(450) ) Jump to comment

@comment.profile.displayName @GuDateFormatLegacy(comment.date, "d MMM y HH:mm") @fragments.inlineSvg("comment-anchor", "icon") @fragments.commentBadges(comment)

@comment.numRecommends @(comment.numRecommends+1) @fragments.inlineSvg("arrow-up-white", "icon")