<commit_before>@(categ: lila.forum.Categ, topic: lila.forum.Topic, posts: Paginator[lila.forum.Post], formWithCaptcha: Option[FormWithCaptcha], unsub: Option[Boolean], canModCateg: Boolean)(implicit ctx: Context)

@moreJs = {
@jsTag("forum-post.js")
@jsTag("embed-analyse.js")
}

@modMenu = {
@mod.menu("forum")
}

@title = @{ s"${topic.name} • page ${posts.currentPage}/${posts.nbPages} • ${categ.name}" }

@forum.layout(
title = title,
menu = modMenu.some.ifTrue(categ.isStaff),
moreJs = moreJs,
openGraph = lila.app.ui.OpenGraph(
title = topic.name,
url = title,
description = shorten(posts.currentPageResults.headOption.??(_.text), 152)).some) {
<div class="topic">
  @categ.team.map { team =>
  <ol class="crumbs">
    <li><span data-icon="d" class="is4"></span></li>
    <li>@teamLink(team)</li>
    <li><a href="@routes.ForumCateg.show(categ.slug)">Forum</a></li>
    <li><h1>@topic.name</h1></li><commit_msg>fix forum opengraph url<commit_after>@(categ: lila.forum.Categ, topic: lila.forum.Topic, posts: Paginator[lila.forum.Post], formWithCaptcha: Option[FormWithCaptcha], unsub: Option[Boolean], canModCateg: Boolean)(implicit ctx: Context)

@moreJs = {
@jsTag("forum-post.js")
@jsTag("embed-analyse.js")
}

@modMenu = {
@mod.menu("forum")
}

@title = @{ s"${topic.name} • page ${posts.currentPage}/${posts.nbPages} • ${categ.name}" }

@forum.layout(
title = title,
menu = modMenu.some.ifTrue(categ.isStaff),
moreJs = moreJs,
openGraph = lila.app.ui.OpenGraph(
title = topic.name,
url = s"$netBaseUrl${routes.ForumTopic.show(categ.slug, topic.slug, posts.currentPage).url}",
description = shorten(posts.currentPageResults.headOption.??(_.text), 152)).some) {
<div class="topic">
  @categ.team.map { team =>
  <ol class="crumbs">
    <li><span data-icon="d" class="is4"></span></li>
    <li>@teamLink(team)</li>
    <li><a href="@routes.ForumCateg.show(categ.slug)">Forum</a></li>
    <li><h1>@topic.name</h1></li>
{'fraction_non_alphanumeric': 0.2142485699427977, 'fraction_numerical': 0.0062402496099844, 'mean_word_length': 5.589041095890411, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7042461', 'n_tokens_mistral': 763, 'n_tokens_neox': 750, 'n_words': 114}