@**
 * Copyright (c) 2014, 2018 Kaj Magnus Lindberg
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *@

@(tpi: debiki.SiteTpi, serverAddress: String, isInLoginPopup: Boolean = false)(content: Html)

<!DOCTYPE html>
<html class="DW dw-pri">
<head>
@tpi.jsonDataMustBeFirst(isInLoginWindow = true, isInLoginPopup = isInLoginPopup)

<meta name="viewport" content="width=device-width">
<meta charset="utf-8"/>
@tpi.talkyardStyles
@if(!tpi.isAdminArea) @{
// But don't load these, when logging in to the Admin Area — then, if there's
// a problem, maybe we couldn't login to fix it.
tpi.anySiteCustomStylesBundle("styles.css")
}

@tpi.parseJsonUpdDocClassesScript()
<script src="@tpi.assetUrl(s"translations/${tpi.languageCode}/i18n.${tpi.minMaxJs}")"></script>
<script src="@tpi.assetUrl(s"slim-bundle.${tpi.minMaxJs}")"></script>
<script src="@tpi.assetUrl(s"more-bundle.${tpi.minMaxJs}")"></script>
</head>
<body>
  <!-- views/authn/authnPageHtmlDoc.scala.html -->
  @content
</body>
</html>

