Back to Frontend

Comments.Scala

discussion/app/views/profileActivity/comments.scala.html

latest662 B
Original Source

@(page: _root_.model.Page, profileComments: discussion.model.ProfileComments)(implicit request: RequestHeader) @import common.SimplePagePaths @import views.support.Seq2zipWithRowInfo

@if(profileComments.comments.isEmpty){

Nothing to see here at the moment.

} else { @profileComments.comments.zipWithRowInfo.map{ case(c, row) =>

@c.discussion.title

@profile(c.profile, Some(c.date))

@comment(c, c.discussion.isClosedForRecommendation)

}

@fragments.pagination(page.metadata.webTitle, profileComments.pagination, SimplePagePaths(page.metadata.url), Some("js-activity-stream-page-change"), false, Some("Comments")) }