@(categ: lila.forum.Categ, topics: Paginator[lila.forum.TopicView], canWrite: Boolean, stickyPosts: List[lila.forum.TopicView])(implicit ctx: Context) @newTopicButton = { @if(canWrite) { @trans.createANewTopic() } } @modMenu = { @mod.menu("forum") } @forum.layout( title = categ.name, menu = modMenu.some.ifTrue(categ.isStaff), openGraph = lila.app.ui.OpenGraph( title = s"Forum: ${categ.name}", url = s"$netBaseUrl${routes.ForumCateg.show(categ.slug).url}", description = categ.desc).some) {
@categ.team.map { team =>
  1. @teamLink(team)
  2. Forum

}.getOrElse {
  1. Forum
  2. @categ.name

}

@categ.desc

@forum.pagination(routes.ForumCateg.show(categ.slug, 1), topics, showPost = false) @newTopicButton
@stickyPosts.map { topic => } @topics.currentPageResults.map { topic => }
@trans.views() @trans.replies() @trans.lastPost()
@topic.name @topic.views.localize @topic.nbReplies.localize @topic.lastPost.map { post => @momentFromNow(post.createdAt)
@trans.by(authorLink(post)) }
@topic.name @topic.views.localize @topic.nbReplies.localize @topic.lastPost.map { post => @momentFromNow(post.createdAt)
@trans.by(authorLink(post)) }
@forum.pagination(routes.ForumCateg.show(categ.slug, 1), topics, showPost = false) @newTopicButton
}