common/app/views/fragments/discussionFooter.scala.html
@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) {
@if(discussionClosed) {
This discussion is closed for comments.
}
@toolbar Loading comments… Trouble loading?
@fragments.inlineSvg("plus", "icon") View more comments
} else {
Comments are currently undergoing scheduled maintenance but will be back again shortly.
} }