Back to Frontend

CommentSchema.Scala

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

latest555 B
Original Source

@import views.support.withJsoup @import discussion.model.Comment @(comment: Comment, showMore: Boolean = false)(implicit request: RequestHeader) @import common.Edition @import discussion.model.Comment @import views.support.{BulletCleaner, InBodyLinkCleaner, GuDateFormatLegacy}

@defining(Edition(request)) { edition => @withJsoup(BulletCleaner(comment.body))( InBodyLinkCleaner("in comment link") ) }

@fragments.person(comment.profile) @GuDateFormatLegacy(comment.date, "d MMM y") @if(showMore){See more comments}