Back to Frontend

DiscussionFooter.Scala

common/app/views/fragments/discussionFooter.scala.html

latest1.2 KB
Original Source

@import common.LinkTo @import conf.switches.Switches._ @import model.Content @(content: Content, isCommentable: Boolean, discussionClosed: Boolean, discussionId: String)(implicit request: RequestHeader) @toolbar = {

Order by @List("newest", "oldest", "recommendations").map { value => - @value }

@if(DiscussionPageSizeSwitch.isSwitchedOn) { Show 25 @pagesizePopUp

} Threads @List("collapsed", "expanded", "unthreaded").map { value => - @value }

@if(content.metadata.sectionId == "crosswords") { Timestamps @List("relative", "absolute").map { value => - @value }

}

} @pagesizePopUp = { @defining(if (DiscussionAllPageSizeSwitch.isSwitchedOn) List("25", "50", "100", "All") else List("25", "50", "100")) { pages => @pages.map { value => - @value } } } @if(isCommentable) { @if(EnableDiscussionSwitch.isSwitchedOn) {

View all comments >

@if(discussionClosed) {

This discussion is closed for comments.

}

@toolbar Loading comments… Trouble loading?

@fragments.inlineSvg("plus", "icon") View more comments

} else {

Comments

Comments are currently undergoing scheduled maintenance but will be back again shortly.

} }