Skip to content

Commit

Permalink
Merge pull request #585 from mkurz/no_version_info_page
Browse files Browse the repository at this point in the history
Do not display version info on doc pages
  • Loading branch information
mkurz authored Apr 25, 2024
2 parents d3e5888 + e32e894 commit d6d46d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/documentation/v2.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

<article>
@content.map { html =>
@versionInfo(pageFileName)(messages, context, reverseRouter)
@if(!req.headers.get(play.api.http.HeaderNames.USER_AGENT).exists(_.toLowerCase.startsWith("algolia crawler"))) {
@versionInfo(pageFileName)(messages, context, reverseRouter)
}

@for(version <- context.version) {
<form id="search">
Expand Down

0 comments on commit d6d46d3

Please sign in to comment.