108 lines
4.3 KiB
HTML
108 lines
4.3 KiB
HTML
@(title: String, active: Option[ui.SiteMenu.Elem] = None, baseline: Option[Html] = None, goodies: Option[Html] = None, chat: Option[Html] = None, robots: Boolean = true, moreCss: Html = Html(""), moreJs: Html = Html(""))(body: Html)(implicit ctx: Context)
|
|
|
|
<!doctype html>
|
|
<html lang="@lang.language">
|
|
<head>
|
|
<title>lichess @title | @trans.freeOnlineChess()</title>
|
|
@cssTag("reset.css")
|
|
@cssTag("tipsy.css")
|
|
@cssTag("jquery-ui.css")
|
|
@cssTag("common.css")
|
|
@cssTag("board.css")
|
|
@cssTag("gamelist.css")
|
|
@cssTag("share.css")
|
|
@cssTag("tooltip.css")
|
|
@cssTag("opening.css")
|
|
@cssTag("hook.css")
|
|
@moreCss
|
|
<meta content="@trans.freeOnlineChessGamePlayChessNowInACleanInterfaceNoRegistrationNoAdsNoPluginRequiredPlayChessWithComputerFriendsOrRandomOpponents()" name="description">
|
|
<meta name="google-site-verification" content="fZ08Imok7kcLaGcJg7BKQExO6vXGgSgsJUsW6JalUCo" />
|
|
<link rel="shortcut icon" href="@routes.Assets.at("favicon.ico")" type="image/x-icon" />
|
|
@if(!robots) {
|
|
<meta content="noindex, nofollow" name="robots">
|
|
}
|
|
</head>
|
|
<body data-sound-file="@routes.Assets.at("sound/alert.ogg")">
|
|
<div id="site_description">@trans.freeOnlineChessGamePlayChessNowInACleanInterfaceNoRegistrationNoAdsNoPluginRequiredPlayChessWithComputerFriendsOrRandomOpponents()</div>
|
|
<div id="top" class="clearfix">
|
|
<a href="@routes.Setting.sound" title="@trans.toggleSound()" id="sound_state" class="available @soundString">
|
|
<span></span>
|
|
</a>
|
|
<div class="lichess_language">
|
|
<a class="toggle_language toggle">
|
|
<span class="s16">@langName(lang)</span>
|
|
</a>
|
|
<ul class="lichess_language_links">
|
|
@otherLangLinks(lang)
|
|
<li><a href="@routes.I18n.contribute">Help translate Lichess!</a></li>
|
|
</ul>
|
|
</div>
|
|
<a href="@routes.Setting.color()" class="colorpicker" data-color="@setting.color">@trans.color()</a>
|
|
@siteMenu.all.map { elem =>
|
|
<a class="goto_nav blank_if_play @elem.currentClass(active)" href="@elem.route">@elem.name()</a>
|
|
}
|
|
<div id="nb_connected_players" class="nb_connected_players none">
|
|
@trans.nbConnectedPlayers("<strong>0</strong>")
|
|
</div>
|
|
@ctx.me.map { m =>
|
|
<div class="security">
|
|
<a class="goto_nav goto_logout" href="@routes.Auth.logout">
|
|
<span class="s16">@trans.logOut()</span>
|
|
</a>
|
|
</div>
|
|
<a id="user_tag" data-elo="@m.elo" href="@routes.User.show(m.username)" class="blank_if_play goto_nav goto_profile">
|
|
<span class="s16">@m.usernameWithElo</span>
|
|
</a>
|
|
}.getOrElse { @auth.miniLogin() }
|
|
</div>
|
|
<div class="content">
|
|
<div class="header">
|
|
<h1>
|
|
<a id="site_title" href="@routes.Lobby.home">
|
|
lichess<span class="extension">.org</span>
|
|
</a>
|
|
@baseline
|
|
</h1>
|
|
@goodies.map { g =>
|
|
<div class="lichess_goodies_wrap">@g</div>
|
|
}
|
|
@chat.map { c =>
|
|
<div class="lichess_chat_wrap">@c</div>
|
|
}
|
|
</div>
|
|
<div id="lichess">
|
|
@body
|
|
</div>
|
|
</div>
|
|
<div class="footer_wrap">
|
|
<div class="lichess_social">
|
|
<div class="addtochrome"><a class="button" href="https://chrome.google.com/webstore/detail/kiefmccciemniajdkgikpnocipidaaeg">Add To Chrome</a></div>
|
|
<br />
|
|
</div>
|
|
<div class="footer">
|
|
<div class="right">
|
|
<a href="http://github.com/ornicar">github.com/ornicar</a> | <a class="js_email">email me</a><br />
|
|
<a href="@routes.Wiki.home()" class="blank_if_play">@trans.learnMoreAboutLichess()</a>
|
|
</div>
|
|
<a href="@routes.Wiki.home()">Wiki</a> |
|
|
<a href="#" title="Having a suggestion, feature request or bug report? Let me know">Feedback</a> |
|
|
<a href="http://github.com/ornicar/lila" target="_blank" title="See what's inside, fork and contribute">Source Code</a><br />
|
|
<a href="#">Translate Lichess</a>
|
|
</div>
|
|
</div>
|
|
|
|
@jsTag("deps.min.js")
|
|
@jsTag("socket.js")
|
|
@jsTag("ctrl.js")
|
|
@jsTag("game.js")
|
|
@jsTag("gamelist.js")
|
|
@jsTag("clock.js")
|
|
@jsTag("setup.js")
|
|
@jsTag("hook.js")
|
|
@moreJs
|
|
@if(lang.language != "en") {
|
|
<script src="@routes.Assets.at("trans/" + lang.language + ".js")"></script>
|
|
}
|
|
</body>
|
|
</html>
|