rename cssTag
parent
9e3421e09c
commit
2f0898a1d6
|
@ -30,13 +30,13 @@ trait AssetHelper { self: I18nHelper with SecurityHelper =>
|
|||
|
||||
def dbImageUrl(path: String) = s"$assetBaseUrl/image/$path"
|
||||
|
||||
def responsiveCssTag(name: String)(implicit ctx: Context): Frag =
|
||||
responsiveCssTagWithTheme(name, ctx.currentBg)
|
||||
def cssTag(name: String)(implicit ctx: Context): Frag =
|
||||
cssTagWithTheme(name, ctx.currentBg)
|
||||
|
||||
def responsiveCssTagWithTheme(name: String, theme: String): Frag =
|
||||
def cssTagWithTheme(name: String, theme: String): Frag =
|
||||
cssAt(s"css/$name.$theme.${if (isProd) "min" else "dev"}.css")
|
||||
|
||||
def responsiveCssTagNoTheme(name: String)(implicit ctx: Context): Frag =
|
||||
def cssTagNoTheme(name: String)(implicit ctx: Context): Frag =
|
||||
cssAt(s"css/$name.${if (isProd) "min" else "dev"}.css")
|
||||
|
||||
def cssVendorTag(name: String): Frag = cssAt("vendor/" + name)
|
||||
|
|
|
@ -16,7 +16,7 @@ object emailConfirmHelp {
|
|||
|
||||
def apply(form: Form[_], status: Option[Status])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("email-confirm"),
|
||||
moreCss = cssTag("email-confirm"),
|
||||
moreJs = jsTag("emailConfirmHelp.js")
|
||||
)(frag(
|
||||
main(cls := "page-small box box-pad email-confirm-help")(
|
||||
|
|
|
@ -15,7 +15,7 @@ object layout {
|
|||
evenMoreJs: Frag = emptyFrag
|
||||
)(body: Frag)(implicit ctx: Context): Frag = views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = frag(responsiveCssTag("account"), evenMoreCss),
|
||||
moreCss = frag(cssTag("account"), evenMoreCss),
|
||||
moreJs = frag(jsTag("account.js"), evenMoreJs)
|
||||
) {
|
||||
def activeCls(c: String) = cls := active.activeO(c)
|
||||
|
|
|
@ -24,7 +24,7 @@ object embed {
|
|||
layout.metaCsp(basicCsp withNonce config.nonce),
|
||||
st.headTitle(replay titleOf pov),
|
||||
layout.pieceSprite(lila.pref.PieceSet.default),
|
||||
responsiveCssTagWithTheme("analyse.embed", config.bg)
|
||||
cssTagWithTheme("analyse.embed", config.bg)
|
||||
),
|
||||
body(cls := List(
|
||||
s"highlight ${config.bg} ${config.board}" -> true
|
||||
|
@ -66,7 +66,7 @@ i18n: ${views.html.board.userAnalysisI18n(withCeval = false, withExplorer = fals
|
|||
layout.viewport,
|
||||
layout.metaCsp(basicCsp),
|
||||
st.headTitle("404 - Game not found"),
|
||||
responsiveCssTagWithTheme("analyse.round.embed", "dark")
|
||||
cssTagWithTheme("analyse.round.embed", "dark")
|
||||
),
|
||||
body(cls := "dark")(
|
||||
div(cls := "not-found")(
|
||||
|
|
|
@ -46,9 +46,9 @@ object replay {
|
|||
bits.layout(
|
||||
title = titleOf(pov),
|
||||
moreCss = frag(
|
||||
responsiveCssTag("analyse.round"),
|
||||
pov.game.variant == Crazyhouse option responsiveCssTag("analyse.zh"),
|
||||
ctx.blind option responsiveCssTag("round.nvui")
|
||||
cssTag("analyse.round"),
|
||||
pov.game.variant == Crazyhouse option cssTag("analyse.zh"),
|
||||
ctx.blind option cssTag("round.nvui")
|
||||
),
|
||||
moreJs = frag(
|
||||
analyseTag,
|
||||
|
|
|
@ -23,7 +23,7 @@ object replayBot {
|
|||
|
||||
views.html.analyse.bits.layout(
|
||||
title = replay titleOf pov,
|
||||
moreCss = responsiveCssTag("analyse.round"),
|
||||
moreCss = cssTag("analyse.round"),
|
||||
openGraph = povOpenGraph(pov).some
|
||||
) {
|
||||
main(cls := "analyse")(
|
||||
|
|
|
@ -28,7 +28,7 @@ object bits {
|
|||
def passwordReset(form: Form[_], captcha: lila.common.Captcha, ok: Option[Boolean] = None)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.passwordReset.txt(),
|
||||
moreCss = responsiveCssTag("auth"),
|
||||
moreCss = cssTag("auth"),
|
||||
moreJs = captchaTag
|
||||
) {
|
||||
main(cls := "auth auth-signup box box-pad")(
|
||||
|
@ -64,7 +64,7 @@ object bits {
|
|||
def passwordResetConfirm(u: User, token: String, form: Form[_], ok: Option[Boolean] = None)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = s"${u.username} - ${trans.changePassword.txt()}",
|
||||
moreCss = responsiveCssTag("form3")
|
||||
moreCss = cssTag("form3")
|
||||
) {
|
||||
main(cls := "page-small box box-pad")(
|
||||
(ok match {
|
||||
|
|
|
@ -16,7 +16,7 @@ object checkYourEmail {
|
|||
)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Check your email",
|
||||
moreCss = responsiveCssTag("email-confirm")
|
||||
moreCss = cssTag("email-confirm")
|
||||
) {
|
||||
main(cls := s"page-small box box-pad email-confirm ${if (form.exists(_.hasErrors)) "error" else "anim"}")(
|
||||
h1(cls := "is-green text", dataIcon := "E")(trans.checkYourEmail()),
|
||||
|
|
|
@ -18,7 +18,7 @@ object login {
|
|||
def apply(form: Form[_], referrer: Option[String])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.signIn.txt(),
|
||||
moreJs = jsTag("login.js"),
|
||||
moreCss = responsiveCssTag("auth")
|
||||
moreCss = cssTag("auth")
|
||||
) {
|
||||
main(cls := "auth auth-login box box-pad")(
|
||||
h1(trans.signIn.frag()),
|
||||
|
|
|
@ -21,7 +21,7 @@ object signup {
|
|||
recaptcha.enabled option recaptchaScript,
|
||||
fingerprintTag
|
||||
),
|
||||
moreCss = responsiveCssTag("auth"),
|
||||
moreCss = cssTag("auth"),
|
||||
csp = defaultCsp.withRecaptcha.some
|
||||
) {
|
||||
main(cls := "auth auth-signup box box-pad")(
|
||||
|
|
|
@ -31,7 +31,7 @@ object layout {
|
|||
case "brown" | "blue" | "green" => ctx.currentTheme.cssClass
|
||||
case _ => "other"
|
||||
}
|
||||
responsiveCssTagNoTheme(s"coords.inner.$color")
|
||||
cssTagNoTheme(s"coords.inner.$color")
|
||||
}
|
||||
}
|
||||
import bits._
|
||||
|
@ -125,10 +125,10 @@ object layout {
|
|||
st.headTitle(fullTitle | s"$title • lichess.org")
|
||||
)
|
||||
else st.headTitle(s"[dev] ${fullTitle | s"$title • lichess.dev"}"),
|
||||
responsiveCssTag("site"),
|
||||
ctx.pref.is3d option responsiveCssTag("board-3d"),
|
||||
ctx.pageData.inquiry.isDefined option responsiveCssTagNoTheme("mod.inquiry"),
|
||||
ctx.userContext.impersonatedBy.isDefined option responsiveCssTagNoTheme("mod.impersonate"),
|
||||
cssTag("site"),
|
||||
ctx.pref.is3d option cssTag("board-3d"),
|
||||
ctx.pageData.inquiry.isDefined option cssTagNoTheme("mod.inquiry"),
|
||||
ctx.userContext.impersonatedBy.isDefined option cssTagNoTheme("mod.impersonate"),
|
||||
moreCss,
|
||||
pieceSprite,
|
||||
ctx.pref.coords == Pref.Coords.INSIDE option innerCoordsCss,
|
||||
|
|
|
@ -12,7 +12,7 @@ object notFound {
|
|||
def apply()(implicit ctx: Context) = layout(
|
||||
title = "Page not found",
|
||||
moreJs = prismicJs,
|
||||
moreCss = responsiveCssTag("not-found"),
|
||||
moreCss = cssTag("not-found"),
|
||||
csp = isGranted(_.Prismic) option defaultCsp.withPrismic(true)
|
||||
) {
|
||||
main(cls := "not-found page-small box box-pad")(
|
||||
|
|
|
@ -12,7 +12,7 @@ object bits {
|
|||
def layout(title: String, openGraph: Option[lila.app.ui.OpenGraph] = None, moreJs: Frag = emptyFrag)(body: Modifier*)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("blog"),
|
||||
moreCss = cssTag("blog"),
|
||||
moreJs = frag(prismicJs, moreJs),
|
||||
openGraph = openGraph,
|
||||
csp = defaultCsp.withPrismic(isGranted(_.Prismic)).some
|
||||
|
|
|
@ -23,7 +23,7 @@ object editor {
|
|||
embedJs(s"""var data=${safeJsonValue(bits.jsData(sit, fen, animationDuration))};data.positions=$positionsJson;
|
||||
LichessEditor(document.getElementById('board-editor'), data);""")
|
||||
),
|
||||
moreCss = responsiveCssTag("editor"),
|
||||
moreCss = cssTag("editor"),
|
||||
chessground = false,
|
||||
zoomable = true,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
|
|
|
@ -17,10 +17,10 @@ object userAnalysis {
|
|||
def apply(data: JsObject, pov: lila.game.Pov)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.analysis.txt(),
|
||||
moreCss = frag(
|
||||
responsiveCssTag("analyse.free"),
|
||||
pov.game.variant == Crazyhouse option responsiveCssTag("analyse.zh"),
|
||||
!pov.game.synthetic && pov.game.playable && ctx.me.flatMap(pov.game.player).isDefined option responsiveCssTag("analyse.forecast"),
|
||||
ctx.blind option responsiveCssTag("round.nvui")
|
||||
cssTag("analyse.free"),
|
||||
pov.game.variant == Crazyhouse option cssTag("analyse.zh"),
|
||||
!pov.game.synthetic && pov.game.playable && ctx.me.flatMap(pov.game.player).isDefined option cssTag("analyse.forecast"),
|
||||
ctx.blind option cssTag("round.nvui")
|
||||
),
|
||||
moreJs = frag(
|
||||
analyseTag,
|
||||
|
|
|
@ -20,7 +20,7 @@ object mine {
|
|||
title = challengeTitle(c),
|
||||
openGraph = challengeOpenGraph(c).some,
|
||||
moreJs = bits.js(c, json, true),
|
||||
moreCss = responsiveCssTag("challenge.page")
|
||||
moreCss = cssTag("challenge.page")
|
||||
) {
|
||||
main(cls := "page-small challenge-page box box-pad")(
|
||||
c.status match {
|
||||
|
|
|
@ -18,7 +18,7 @@ object theirs {
|
|||
title = challengeTitle(c),
|
||||
openGraph = challengeOpenGraph(c).some,
|
||||
moreJs = bits.js(c, json, false),
|
||||
moreCss = responsiveCssTag("challenge.page")
|
||||
moreCss = cssTag("challenge.page")
|
||||
) {
|
||||
main(cls := "page-small challenge-page challenge-theirs box box-pad")(
|
||||
c.status match {
|
||||
|
|
|
@ -18,7 +18,7 @@ object edit {
|
|||
def apply(c: lila.coach.Coach.WithUser, form: Form[_], reviews: lila.coach.CoachReview.Reviews)(implicit ctx: Context) = {
|
||||
views.html.account.layout(
|
||||
title = s"${c.user.titleUsername} coach page",
|
||||
evenMoreCss = responsiveCssTag("coach.editor"),
|
||||
evenMoreCss = cssTag("coach.editor"),
|
||||
evenMoreJs = frag(
|
||||
jsAt("vendor/jquery.form.min.js"),
|
||||
jsAt("vendor/bar-rating/dist/jquery.barrating.min.js"),
|
||||
|
|
|
@ -13,7 +13,7 @@ object index {
|
|||
def apply(pager: Paginator[lila.coach.Coach.WithUser], order: lila.coach.CoachPager.Order)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Lichess coaches",
|
||||
moreCss = responsiveCssTag("coach"),
|
||||
moreCss = cssTag("coach"),
|
||||
moreJs = infiniteScrollTag
|
||||
) {
|
||||
main(cls := "coach-list coach-full-page")(
|
||||
|
|
|
@ -13,7 +13,7 @@ object picture {
|
|||
views.html.account.layout(
|
||||
title = s"${c.user.titleUsername} coach picture",
|
||||
evenMoreJs = jsTag("coach.form.js"),
|
||||
evenMoreCss = responsiveCssTag("coach.editor"),
|
||||
evenMoreCss = cssTag("coach.editor"),
|
||||
active = "coach"
|
||||
) {
|
||||
div(cls := "account coach-edit coach-picture box")(
|
||||
|
|
|
@ -38,7 +38,7 @@ $('.coach-review-form form').show();
|
|||
});
|
||||
});""")
|
||||
),
|
||||
moreCss = responsiveCssTag("coach"),
|
||||
moreCss = cssTag("coach"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = title,
|
||||
description = shorten(~(c.coach.profile.headline), 152),
|
||||
|
|
|
@ -15,7 +15,7 @@ object coordinate {
|
|||
def home(scoreOption: Option[lila.coordinate.Score])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.coordinates.coordinateTraining.txt(),
|
||||
moreCss = responsiveCssTag("coordinate"),
|
||||
moreCss = cssTag("coordinate"),
|
||||
moreJs = frag(
|
||||
jsTag("vendor/sparkline.min.js"),
|
||||
jsAt("compiled/coordinate.js")
|
||||
|
|
|
@ -14,7 +14,7 @@ object dev {
|
|||
val title = "Settings"
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
)(
|
||||
main(cls := "page-menu")(
|
||||
mod.menu("setting"),
|
||||
|
@ -41,7 +41,7 @@ object dev {
|
|||
val title = "Command Line Interface"
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("cli"),
|
||||
|
|
|
@ -35,7 +35,7 @@ object event {
|
|||
|
||||
def show(e: lila.event.Event)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = e.title,
|
||||
moreCss = responsiveCssTag("event"),
|
||||
moreCss = cssTag("event"),
|
||||
moreJs = jsTag("event-countdown.js")
|
||||
) {
|
||||
main(cls := "page-small event box box-pad")(
|
||||
|
@ -119,7 +119,7 @@ object event {
|
|||
private def layout(title: String, css: String = "mod.misc")(body: Frag)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag(css),
|
||||
moreCss = cssTag(css),
|
||||
moreJs = frag(
|
||||
flatpickrTag,
|
||||
delayFlatpickrStart
|
||||
|
|
|
@ -12,7 +12,7 @@ object categ {
|
|||
|
||||
def index(categs: List[lila.forum.CategView])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.forum.txt(),
|
||||
moreCss = responsiveCssTag("forum"),
|
||||
moreCss = cssTag("forum"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = "Lichess community forum",
|
||||
url = s"$netBaseUrl${routes.ForumCateg.index.url}",
|
||||
|
@ -68,7 +68,7 @@ object categ {
|
|||
|
||||
views.html.base.layout(
|
||||
title = categ.name,
|
||||
moreCss = responsiveCssTag("forum"),
|
||||
moreCss = cssTag("forum"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = s"Forum: ${categ.name}",
|
||||
url = s"$netBaseUrl${routes.ForumCateg.show(categ.slug).url}",
|
||||
|
|
|
@ -15,7 +15,7 @@ object search {
|
|||
views.html.base.layout(
|
||||
title = title,
|
||||
moreJs = infiniteScrollTag,
|
||||
moreCss = responsiveCssTag("forum")
|
||||
moreCss = cssTag("forum")
|
||||
)(
|
||||
main(cls := "box box search")(
|
||||
div(cls := "box__top")(
|
||||
|
|
|
@ -15,7 +15,7 @@ object topic {
|
|||
def form(categ: lila.forum.Categ, form: Form[_], captcha: lila.common.Captcha)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "New forum topic",
|
||||
moreCss = responsiveCssTag("forum"),
|
||||
moreCss = cssTag("forum"),
|
||||
moreJs = frag(
|
||||
jsTag("forum-post.js"),
|
||||
captchaTag
|
||||
|
@ -68,7 +68,7 @@ object topic {
|
|||
formWithCaptcha.isDefined option captchaTag,
|
||||
jsAt("compiled/embed-analyse.js")
|
||||
),
|
||||
moreCss = responsiveCssTag("forum"),
|
||||
moreCss = cssTag("forum"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = topic.name,
|
||||
url = s"$netBaseUrl${routes.ForumTopic.show(categ.slug, topic.slug, posts.currentPage).url}",
|
||||
|
|
|
@ -14,7 +14,7 @@ object importGame {
|
|||
|
||||
def apply(form: play.api.data.Form[_])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.importGame.txt(),
|
||||
moreCss = responsiveCssTag("importer"),
|
||||
moreCss = cssTag("importer"),
|
||||
moreJs = jsTag("importer.js"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = "Paste PGN chess game",
|
||||
|
|
|
@ -40,7 +40,7 @@ postUrl: "${routes.Insight.json(u.username)}"
|
|||
});
|
||||
});""")
|
||||
),
|
||||
moreCss = responsiveCssTag("insight")
|
||||
moreCss = cssTag("insight")
|
||||
)(frag(
|
||||
main(id := "insight"),
|
||||
stale option div(cls := "insight-stale none")(
|
||||
|
@ -53,7 +53,7 @@ postUrl: "${routes.Insight.json(u.username)}"
|
|||
views.html.base.layout(
|
||||
title = s"${u.username}'s chess insights",
|
||||
moreJs = jsTag("insight-refresh.js"),
|
||||
moreCss = responsiveCssTag("insight")
|
||||
moreCss = cssTag("insight")
|
||||
)(
|
||||
main(cls := "box box-pad page-small")(
|
||||
h1(cls := "text", dataIcon := "7")(u.username, " chess insights"),
|
||||
|
|
|
@ -17,7 +17,7 @@ object irwin {
|
|||
|
||||
def dashboard(dashboard: lila.irwin.IrwinDashboard)(implicit ctx: Context) = base.layout(
|
||||
title = "Irwin dashboard",
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
mod.menu("irwin"),
|
||||
|
|
|
@ -20,7 +20,7 @@ LichessLearn(document.getElementById('learn-app'), {
|
|||
data: ${data.fold("null")(safeJsonValue)},
|
||||
i18n: ${safeJsonValue(i18nFullDbJsObject(lila.i18n.I18nDb.Learn))}});});""")
|
||||
),
|
||||
moreCss = responsiveCssTag("learn"),
|
||||
moreCss = cssTag("learn"),
|
||||
chessground = false,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = "Learn chess by playing",
|
||||
|
|
|
@ -40,7 +40,7 @@ object home {
|
|||
s"""lichess=window.lichess||{};customWS=true;lichess_lobby={data:${safeJsonValue(data)},playban:$playbanJs,i18n:$transJs}"""
|
||||
}
|
||||
),
|
||||
moreCss = responsiveCssTag("lobby"),
|
||||
moreCss = cssTag("lobby"),
|
||||
chessground = false,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
image = staticUrl("images/large_tile.png").some,
|
||||
|
|
|
@ -22,7 +22,7 @@ object form {
|
|||
)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.composeMessage.txt(),
|
||||
moreCss = responsiveCssTag("message"),
|
||||
moreCss = cssTag("message"),
|
||||
moreJs = jsTag("message.js")
|
||||
) {
|
||||
main(cls := "message-new box box-pad")(
|
||||
|
|
|
@ -12,7 +12,7 @@ object inbox {
|
|||
def apply(me: lila.user.User, threads: Paginator[lila.message.Thread])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.inbox.txt(),
|
||||
moreCss = responsiveCssTag("message"),
|
||||
moreCss = cssTag("message"),
|
||||
moreJs = frag(infiniteScrollTag, jsTag("message.js"))
|
||||
) {
|
||||
main(cls := "message-list box")(
|
||||
|
|
|
@ -19,7 +19,7 @@ object thread {
|
|||
)(implicit ctx: Context, me: lila.user.User) =
|
||||
views.html.base.layout(
|
||||
title = thread.name,
|
||||
moreCss = responsiveCssTag("message"),
|
||||
moreCss = cssTag("message"),
|
||||
moreJs = frag(
|
||||
jsTag("message.js"),
|
||||
jsAt("compiled/embed-analyse.js")
|
||||
|
|
|
@ -10,7 +10,7 @@ object mobile {
|
|||
|
||||
def apply(apkDoc: io.prismic.Document, resolver: io.prismic.DocumentLinkResolver)(implicit ctx: Context) = base.layout(
|
||||
title = "Mobile",
|
||||
moreCss = responsiveCssTag("mobile")
|
||||
moreCss = cssTag("mobile")
|
||||
) {
|
||||
main(
|
||||
div(cls := "mobile page-small box box-pad")(
|
||||
|
|
|
@ -12,7 +12,7 @@ object chatPanic {
|
|||
val title = "Chat Panic"
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("panic"),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@base.layout(
|
||||
title = u.username + " communications",
|
||||
moreCss = responsiveCssTag("mod.communication")) {
|
||||
moreCss = cssTag("mod.communication")) {
|
||||
<main id="communication" class="box box-pad">
|
||||
<h1>
|
||||
<div class="title">
|
||||
|
|
|
@ -11,7 +11,7 @@ object emailConfirm {
|
|||
def apply(query: String, user: Option[lila.user.User], email: Option[lila.common.EmailAddress])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Email confirmation",
|
||||
moreCss = responsiveCssTag("mod.misc"),
|
||||
moreCss = cssTag("mod.misc"),
|
||||
moreJs = embedJs("""$('.mod-confirm form input').on('paste', function() {
|
||||
setTimeout(function() { $(this).parent().submit(); }.bind(this), 50);
|
||||
}).each(function() {
|
||||
|
|
|
@ -21,7 +21,7 @@ object gamify {
|
|||
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.gamify")
|
||||
moreCss = cssTag("mod.gamify")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("gamify"),
|
||||
|
@ -60,7 +60,7 @@ object gamify {
|
|||
val title = s"Moderators of the ${period.name}"
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.gamify")
|
||||
moreCss = cssTag("mod.gamify")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("gamify"),
|
||||
|
|
|
@ -14,7 +14,7 @@ object log {
|
|||
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("log"),
|
||||
|
|
|
@ -14,8 +14,8 @@ object permissions {
|
|||
views.html.base.layout(
|
||||
title = s"${u.username} permissions",
|
||||
moreCss = frag(
|
||||
responsiveCssTag("mod.communication"),
|
||||
responsiveCssTag("form3")
|
||||
cssTag("mod.communication"),
|
||||
cssTag("form3")
|
||||
),
|
||||
moreJs = embedJs("""$(function() {
|
||||
$('button.clear').on('click', function() {
|
||||
|
|
|
@ -15,7 +15,7 @@ object publicChat {
|
|||
)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Public Chats",
|
||||
moreCss = responsiveCssTag("mod.communication"),
|
||||
moreCss = cssTag("mod.communication"),
|
||||
moreJs = jsTag("public-chat.js")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -16,7 +16,7 @@ object search {
|
|||
def apply(form: Form[_], users: List[lila.user.User.WithEmails])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Search users",
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("search"),
|
||||
|
|
|
@ -11,7 +11,7 @@ object features {
|
|||
|
||||
def apply()(implicit ctx: Context) = views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("feature"),
|
||||
moreCss = cssTag("feature"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = title,
|
||||
url = s"$netBaseUrl${routes.Plan.features.url}",
|
||||
|
|
|
@ -12,7 +12,7 @@ lichess.checkout("@stripePublicKey");
|
|||
|
||||
@base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("plan"),
|
||||
moreCss = cssTag("plan"),
|
||||
moreJs = moreJs,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = title,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
@base.layout(
|
||||
title = "Thank you for your support!",
|
||||
moreCss = responsiveCssTag("plan"),
|
||||
moreCss = cssTag("plan"),
|
||||
moreJs = jsTag("plan.js")) {
|
||||
|
||||
<main class="box box-pad plan">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@(patron: Option[lila.plan.Patron], customer: Option[lila.plan.StripeCustomer])(implicit ctx: Context)
|
||||
|
||||
@base.layout(
|
||||
moreCss = responsiveCssTag("page"),
|
||||
moreCss = cssTag("page"),
|
||||
title = "Thank you for your support!") {
|
||||
|
||||
<main class="page-small page box box-pad">
|
||||
|
|
|
@ -13,7 +13,7 @@ object config {
|
|||
def apply(structure: lila.practice.PracticeStructure, form: Form[_])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Practice structure",
|
||||
moreCss = responsiveCssTag("mod.misc")
|
||||
moreCss = cssTag("mod.misc")
|
||||
)(
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("practice"),
|
||||
|
|
|
@ -12,7 +12,7 @@ object index {
|
|||
|
||||
def apply(data: lila.practice.UserPractice)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = "Practice chess positions",
|
||||
moreCss = responsiveCssTag("practice.index"),
|
||||
moreCss = cssTag("practice.index"),
|
||||
moreJs = embedJs(s"""$$('.do-reset').on('click', function() {
|
||||
if (confirm('You will lose your practice progress!')) this.parentNode.submit();
|
||||
});"""),
|
||||
|
|
|
@ -15,7 +15,7 @@ object show {
|
|||
data: lila.practice.JsonView.JsData
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = us.practiceStudy.name,
|
||||
moreCss = responsiveCssTag("analyse.practice"),
|
||||
moreCss = cssTag("analyse.practice"),
|
||||
moreJs = frag(
|
||||
analyseTag,
|
||||
analyseNvuiTag,
|
||||
|
|
|
@ -23,7 +23,7 @@ object embed {
|
|||
layout.metaCsp(basicCsp),
|
||||
st.headTitle("lichess.org chess puzzle"),
|
||||
layout.pieceSprite(lila.pref.PieceSet.default),
|
||||
responsiveCssTagWithTheme("tv.embed", config.bg)
|
||||
cssTagWithTheme("tv.embed", config.bg)
|
||||
),
|
||||
body(
|
||||
cls := s"base ${config.board}",
|
||||
|
|
|
@ -14,7 +14,7 @@ object show {
|
|||
def apply(puzzle: lila.puzzle.Puzzle, data: JsObject, pref: JsObject)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.training.txt(),
|
||||
moreCss = responsiveCssTag("puzzle"),
|
||||
moreCss = cssTag("puzzle"),
|
||||
moreJs = frag(
|
||||
jsTag("vendor/sparkline.min.js"),
|
||||
jsAt(s"compiled/lichess.puzzle${isProd ?? (".min")}.js"),
|
||||
|
|
|
@ -53,7 +53,7 @@ object bits {
|
|||
def layout(title: String)(content: Modifier*)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("relation")
|
||||
moreCss = cssTag("relation")
|
||||
) {
|
||||
main(cls := "box page-small")(content)
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ object form {
|
|||
private def layout(title: String)(body: Modifier*)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("relay.form"),
|
||||
moreCss = cssTag("relay.form"),
|
||||
moreJs = frag(
|
||||
flatpickrTag,
|
||||
delayFlatpickrStart
|
||||
|
|
|
@ -27,7 +27,7 @@ object index {
|
|||
|
||||
views.html.base.layout(
|
||||
title = "Live tournament broadcasts",
|
||||
moreCss = responsiveCssTag("relay.index"),
|
||||
moreCss = cssTag("relay.index"),
|
||||
moreJs = infiniteScrollTag
|
||||
) {
|
||||
main(cls := "relay-index page-small box")(
|
||||
|
|
|
@ -20,7 +20,7 @@ object show {
|
|||
streams: List[lila.streamer.Stream]
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = r.name,
|
||||
moreCss = responsiveCssTag("analyse.study"),
|
||||
moreCss = cssTag("analyse.study"),
|
||||
moreJs = frag(
|
||||
analyseTag,
|
||||
analyseNvuiTag,
|
||||
|
|
|
@ -14,7 +14,7 @@ object form {
|
|||
def apply(form: Form[_], reqUser: Option[User] = None, captcha: lila.common.Captcha)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.reportAUser.txt(),
|
||||
moreCss = responsiveCssTag("form3-captcha"),
|
||||
moreCss = cssTag("form3-captcha"),
|
||||
moreJs = captchaTag
|
||||
) {
|
||||
main(cls := "page-small box box-pad report")(
|
||||
|
|
|
@ -16,7 +16,7 @@ object list {
|
|||
streamers: Int
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = "Reports",
|
||||
moreCss = responsiveCssTag("mod.report")
|
||||
moreCss = cssTag("mod.report")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
views.html.mod.menu("report"),
|
||||
|
|
|
@ -26,8 +26,8 @@ object bits {
|
|||
openGraph = openGraph,
|
||||
moreJs = moreJs,
|
||||
moreCss = frag(
|
||||
responsiveCssTag { if (variant == Crazyhouse) "round.zh" else "round" },
|
||||
ctx.blind option responsiveCssTag("round.nvui"),
|
||||
cssTag { if (variant == Crazyhouse) "round.zh" else "round" },
|
||||
ctx.blind option cssTag("round.nvui"),
|
||||
moreCss
|
||||
),
|
||||
chessground = chessground,
|
||||
|
|
|
@ -22,7 +22,7 @@ object index {
|
|||
jsTag("search.js"),
|
||||
infiniteScrollTag
|
||||
),
|
||||
moreCss = responsiveCssTag("search"),
|
||||
moreCss = cssTag("search"),
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = s"Search in ${nbGames.localize} chess games",
|
||||
url = s"$netBaseUrl${routes.Search.index().url}",
|
||||
|
|
|
@ -14,7 +14,7 @@ object filter {
|
|||
import bits._
|
||||
|
||||
def apply(form: Form[_], filter: lila.setup.FilterConfig)(implicit ctx: Context) = frag(
|
||||
responsiveCssTag("lobby.setup"),
|
||||
cssTag("lobby.setup"),
|
||||
st.form(action := routes.Setup.filter(), novalidate)(
|
||||
table(
|
||||
tbody(
|
||||
|
|
|
@ -17,7 +17,7 @@ object form {
|
|||
|
||||
views.html.base.layout(
|
||||
title = trans.hostANewSimul.txt(),
|
||||
moreCss = responsiveCssTag("simul.form")
|
||||
moreCss = cssTag("simul.form")
|
||||
) {
|
||||
main(cls := "box box-pad page-small simul-form")(
|
||||
h1(trans.hostANewSimul.frag()),
|
||||
|
|
|
@ -15,7 +15,7 @@ object home {
|
|||
starteds: List[lila.simul.Simul],
|
||||
finisheds: List[lila.simul.Simul]
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
moreCss = responsiveCssTag("simul.list"),
|
||||
moreCss = cssTag("simul.list"),
|
||||
moreJs = embedJs(s"""$$(function() {
|
||||
lichess.StrongSocket.defaults.params.flag = 'simul';
|
||||
lichess.pubsub.on('socket.in.reload', () => {
|
||||
|
|
|
@ -18,7 +18,7 @@ object show {
|
|||
chatOption: Option[lila.chat.UserChat.Mine],
|
||||
stream: Option[lila.streamer.Stream]
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
moreCss = responsiveCssTag("simul.show"),
|
||||
moreCss = cssTag("simul.show"),
|
||||
title = sim.fullName,
|
||||
moreJs = frag(
|
||||
jsAt(s"compiled/lichess.simul${isProd ?? (".min")}.js"),
|
||||
|
|
|
@ -289,7 +289,7 @@ object contact {
|
|||
def apply()(implicit ctx: Context) = help.layout(
|
||||
title = "Contact",
|
||||
active = "contact",
|
||||
moreCss = responsiveCssTag("contact"),
|
||||
moreCss = cssTag("contact"),
|
||||
moreJs = embedJs("""location=location.hash||"#help-root""""),
|
||||
contentCls = "page box box-pad"
|
||||
)(frag(
|
||||
|
|
|
@ -19,7 +19,7 @@ object faq {
|
|||
def apply()(implicit ctx: Context) = help.layout(
|
||||
title = "Frequently Asked Questions",
|
||||
active = "faq",
|
||||
moreCss = responsiveCssTag("faq")
|
||||
moreCss = cssTag("faq")
|
||||
) {
|
||||
main(cls := "faq small-page box box-pad")(
|
||||
h1(cls := "lichess_title")("Frequently Asked Questions"),
|
||||
|
|
|
@ -14,7 +14,7 @@ object help {
|
|||
title = title,
|
||||
active = active,
|
||||
contentCls = "page box box-pad",
|
||||
moreCss = responsiveCssTag("page")
|
||||
moreCss = cssTag("page")
|
||||
)(frag(
|
||||
h1(title),
|
||||
div(cls := "body")(raw(~doc.getHtml("doc.content", resolver)))
|
||||
|
@ -33,7 +33,7 @@ object help {
|
|||
layout(
|
||||
title = "Webmasters",
|
||||
active = "webmasters",
|
||||
moreCss = responsiveCssTag("page"),
|
||||
moreCss = cssTag("page"),
|
||||
contentCls = "page"
|
||||
)(frag(
|
||||
div(cls := "box box-pad developers body") {
|
||||
|
|
|
@ -10,7 +10,7 @@ object lag {
|
|||
def apply()(implicit ctx: Context) = help.layout(
|
||||
title = "Is lichess lagging?",
|
||||
active = "lag",
|
||||
moreCss = responsiveCssTag("lag"),
|
||||
moreCss = cssTag("lag"),
|
||||
moreJs = frag(
|
||||
highchartsLatestTag,
|
||||
highchartsMoreTag,
|
||||
|
|
|
@ -8,7 +8,7 @@ object page {
|
|||
|
||||
def apply(doc: io.prismic.Document, resolver: io.prismic.DocumentLinkResolver)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
moreCss = responsiveCssTag("page"),
|
||||
moreCss = cssTag("page"),
|
||||
title = s"${~doc.getText("doc.title")}"
|
||||
) {
|
||||
main(cls := "page-small box box-pad page")(
|
||||
|
|
|
@ -9,7 +9,7 @@ object swag {
|
|||
|
||||
def apply(doc: io.prismic.Document, resolver: io.prismic.DocumentLinkResolver)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
moreCss = responsiveCssTag("swag"),
|
||||
moreCss = cssTag("swag"),
|
||||
title = "Lichess Swag",
|
||||
wrapClass = "full-screen-force",
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
|
|
|
@ -52,7 +52,7 @@ object variant {
|
|||
openGraph: Option[lila.app.ui.OpenGraph] = None
|
||||
)(body: Modifier*)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("variant"),
|
||||
moreCss = cssTag("variant"),
|
||||
openGraph = openGraph
|
||||
)(
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -12,7 +12,7 @@ object ratingDistribution {
|
|||
|
||||
def apply(perfType: PerfType, data: List[Int])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.weeklyPerfTypeRatingDistribution.txt(perfType.name),
|
||||
moreCss = responsiveCssTag("user.rating.stats"),
|
||||
moreCss = cssTag("user.rating.stats"),
|
||||
wrapClass = "full-screen-force",
|
||||
moreJs = frag(
|
||||
jsTag("chart/ratingDistribution.js"),
|
||||
|
|
|
@ -12,7 +12,7 @@ object bits {
|
|||
title = "Become a lichess streamer",
|
||||
icon = Some(""),
|
||||
back = false,
|
||||
moreCss = responsiveCssTag("streamer.form").some
|
||||
moreCss = cssTag("streamer.form").some
|
||||
)(
|
||||
form(cls := "streamer-new", action := routes.Streamer.create, method := "POST")(
|
||||
h2("Do you have a Twitch or YouTube stream, ", me.username, "?"),
|
||||
|
|
|
@ -22,7 +22,7 @@ object edit {
|
|||
|
||||
views.html.base.layout(
|
||||
title = s"${s.user.titleUsername} streamer page",
|
||||
moreCss = responsiveCssTag("streamer.form"),
|
||||
moreCss = cssTag("streamer.form"),
|
||||
moreJs = jsTag("streamer.form.js")
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -67,7 +67,7 @@ object index {
|
|||
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("streamer.list"),
|
||||
moreCss = cssTag("streamer.list"),
|
||||
moreJs = infiniteScrollTag
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -11,7 +11,7 @@ object picture {
|
|||
views.html.base.layout(
|
||||
title = s"${s.user.titleUsername} streamer picture",
|
||||
moreJs = jsTag("streamer.form.js"),
|
||||
moreCss = responsiveCssTag("streamer.form")
|
||||
moreCss = cssTag("streamer.form")
|
||||
) {
|
||||
main(cls := "streamer-picture small-page box")(
|
||||
h1(userLink(s.user), " streamer picture"),
|
||||
|
|
|
@ -15,7 +15,7 @@ object show {
|
|||
following: Boolean
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = s"${s.titleName} streams chess",
|
||||
moreCss = responsiveCssTag("streamer.show"),
|
||||
moreCss = cssTag("streamer.show"),
|
||||
moreJs = embedJs("""
|
||||
$(function() {
|
||||
$('button.follow').click(function() {
|
||||
|
|
|
@ -20,7 +20,7 @@ object create {
|
|||
title = "Study",
|
||||
icon = Some("4"),
|
||||
back = true,
|
||||
moreCss = responsiveCssTag("study.create").some
|
||||
moreCss = cssTag("study.create").some
|
||||
) {
|
||||
div(cls := "study-create")(
|
||||
form(action := routes.Study.create, method := "POST")(
|
||||
|
|
|
@ -23,7 +23,7 @@ object embed {
|
|||
layout.metaCsp(basicCsp withNonce config.nonce),
|
||||
st.headTitle(s"${s.name} ${chapter.name}"),
|
||||
layout.pieceSprite(lila.pref.PieceSet.default),
|
||||
responsiveCssTagWithTheme("analyse.embed", config.bg)
|
||||
cssTagWithTheme("analyse.embed", config.bg)
|
||||
),
|
||||
body(cls := List(
|
||||
s"highlight ${config.bg} ${config.board}" -> true
|
||||
|
@ -68,7 +68,7 @@ userId: null
|
|||
layout.viewport,
|
||||
layout.metaCsp(basicCsp),
|
||||
st.headTitle("404 - Study not found"),
|
||||
responsiveCssTagWithTheme("analyse.round.embed", "dark")
|
||||
cssTagWithTheme("analyse.round.embed", "dark")
|
||||
),
|
||||
body(cls := "dark")(
|
||||
div(cls := "not-found")(
|
||||
|
|
|
@ -89,7 +89,7 @@ object list {
|
|||
def search(pag: Paginator[WithChaptersAndLiked], text: String)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = text,
|
||||
moreCss = responsiveCssTag("study.index"),
|
||||
moreCss = cssTag("study.index"),
|
||||
moreJs = infiniteScrollTag
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
@ -138,7 +138,7 @@ object list {
|
|||
searchFilter: String
|
||||
)(titleFrag: Frag)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("study.index"),
|
||||
moreCss = cssTag("study.index"),
|
||||
moreJs = infiniteScrollTag
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -19,7 +19,7 @@ object show {
|
|||
streams: List[lila.streamer.Stream]
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = s.name.value,
|
||||
moreCss = responsiveCssTag("analyse.study"),
|
||||
moreCss = cssTag("analyse.study"),
|
||||
moreJs = frag(
|
||||
analyseTag,
|
||||
analyseNvuiTag,
|
||||
|
|
|
@ -45,7 +45,7 @@ object bits {
|
|||
private[team] def layout(title: String, openGraph: Option[lila.app.ui.OpenGraph] = None)(body: Frag)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("team"),
|
||||
moreCss = cssTag("team"),
|
||||
moreJs = infiniteScrollTag,
|
||||
openGraph = openGraph
|
||||
)(body)
|
||||
|
|
|
@ -13,7 +13,7 @@ object form {
|
|||
def create(form: Form[_], captcha: lila.common.Captcha)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.newTeam.txt(),
|
||||
moreCss = responsiveCssTag("team"),
|
||||
moreCss = cssTag("team"),
|
||||
moreJs = frag(infiniteScrollTag, captchaTag)
|
||||
) {
|
||||
main(cls := "page-menu page-small")(
|
||||
|
|
|
@ -17,7 +17,7 @@ object request {
|
|||
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag("team"),
|
||||
moreCss = cssTag("team"),
|
||||
moreJs = frag(infiniteScrollTag, captchaTag)
|
||||
) {
|
||||
main(cls := "page-menu page-small")(
|
||||
|
|
|
@ -20,7 +20,7 @@ object timeline {
|
|||
def more(entries: Vector[lila.timeline.Entry])(implicit ctx: Context) =
|
||||
base.layout(
|
||||
title = trans.timeline.txt(),
|
||||
moreCss = responsiveCssTag("slist")
|
||||
moreCss = cssTag("slist")
|
||||
)(
|
||||
main(cls := "timeline page-small box")(
|
||||
h1(trans.timeline.frag()),
|
||||
|
|
|
@ -18,7 +18,7 @@ data: ${safeJsonValue(json)},
|
|||
i18n: ${bits.jsI18n()}
|
||||
});""")
|
||||
),
|
||||
moreCss = responsiveCssTag("tournament.calendar")
|
||||
moreCss = cssTag("tournament.calendar")
|
||||
) {
|
||||
main(cls := "box")(
|
||||
h1("Tournament calendar"),
|
||||
|
|
|
@ -18,7 +18,7 @@ object crud {
|
|||
private def layout(title: String, evenMoreJs: Frag = emptyFrag, css: String = "mod.misc")(body: Frag)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = title,
|
||||
moreCss = responsiveCssTag(css),
|
||||
moreCss = cssTag(css),
|
||||
moreJs = frag(
|
||||
flatpickrTag,
|
||||
delayFlatpickrStart,
|
||||
|
|
|
@ -11,7 +11,7 @@ object faq {
|
|||
|
||||
def page(system: Option[lila.tournament.System])(implicit ctx: Context) = views.html.base.layout(
|
||||
title = "Tournament FAQ",
|
||||
moreCss = responsiveCssTag("page")
|
||||
moreCss = cssTag("page")
|
||||
) {
|
||||
main(cls := "page-small box box-pad page")(
|
||||
h1(
|
||||
|
|
|
@ -15,7 +15,7 @@ object form {
|
|||
|
||||
def apply(form: Form[_], config: DataForm, me: User, teams: lila.hub.tournamentTeam.TeamIdsWithNames)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.newTournament.txt(),
|
||||
moreCss = responsiveCssTag("tournament.form"),
|
||||
moreCss = cssTag("tournament.form"),
|
||||
moreJs = frag(
|
||||
flatpickrTag,
|
||||
jsTag("tournamentForm.js")
|
||||
|
|
|
@ -18,7 +18,7 @@ object home {
|
|||
)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = trans.tournaments.txt(),
|
||||
moreCss = responsiveCssTag("tournament.home"),
|
||||
moreCss = cssTag("tournament.home"),
|
||||
wrapClass = "full-screen-force",
|
||||
moreJs = frag(
|
||||
infiniteScrollTag,
|
||||
|
|
|
@ -30,7 +30,7 @@ object leaderboard {
|
|||
|
||||
def apply(winners: lila.tournament.AllWinners)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = "Tournament leaderboard",
|
||||
moreCss = responsiveCssTag("tournament.leaderboard"),
|
||||
moreCss = cssTag("tournament.leaderboard"),
|
||||
wrapClass = "full-screen-force"
|
||||
) {
|
||||
def eliteWinners = section(
|
||||
|
|
|
@ -15,7 +15,7 @@ object shields {
|
|||
def apply(history: lila.tournament.TournamentShield.History)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = "Tournament shields",
|
||||
moreCss = responsiveCssTag("tournament.leaderboard"),
|
||||
moreCss = cssTag("tournament.leaderboard"),
|
||||
wrapClass = "full-screen-force"
|
||||
) {
|
||||
main(cls := "page-menu")(
|
||||
|
|
|
@ -31,7 +31,7 @@ chat:${
|
|||
safeJsonValue(chat.json(c.chat, name = trans.chatRoom.txt(), timeout = c.timeout, public = true)))
|
||||
}};""")
|
||||
),
|
||||
moreCss = responsiveCssTag("tournament.show"),
|
||||
moreCss = cssTag("tournament.show"),
|
||||
chessground = false,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = s"${tour.fullName}: ${tour.variant.name} ${tour.clock.show} ${tour.mode.name} #${tour.id}",
|
||||
|
|
|
@ -21,7 +21,7 @@ object embed {
|
|||
layout.metaCsp(basicCsp(config.req)),
|
||||
st.headTitle("lichess.org chess TV"),
|
||||
layout.pieceSprite(lila.pref.PieceSet.default),
|
||||
responsiveCssTagWithTheme("tv.embed", config.bg)
|
||||
cssTagWithTheme("tv.embed", config.bg)
|
||||
),
|
||||
body(
|
||||
cls := s"base ${config.board}",
|
||||
|
|
|
@ -11,7 +11,7 @@ object games {
|
|||
def apply(channel: lila.tv.Tv.Channel, povs: List[lila.game.Pov], champions: lila.tv.Tv.Champions)(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = s"${channel.name} • ${trans.currentGames.txt()}",
|
||||
moreCss = responsiveCssTag("tv.games")
|
||||
moreCss = cssTag("tv.games")
|
||||
) {
|
||||
main(cls := "page-menu tv-games")(
|
||||
st.aside(cls := "page-menu__menu")(
|
||||
|
|
|
@ -30,7 +30,7 @@ object index {
|
|||
onload=function(){LichessRound.boot({data:${safeJsonValue(data)},i18n:$transJs})}"""
|
||||
}
|
||||
),
|
||||
moreCss = responsiveCssTag("tv.single"),
|
||||
moreCss = cssTag("tv.single"),
|
||||
chessground = false,
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = s"Watch the best ${channel.name.toLowerCase} games of lichess.org",
|
||||
|
|
|
@ -19,7 +19,7 @@ object list {
|
|||
nbAllTime: List[User.LightCount]
|
||||
)(implicit ctx: Context) = views.html.base.layout(
|
||||
title = trans.players.txt(),
|
||||
moreCss = responsiveCssTag("user.list"),
|
||||
moreCss = cssTag("user.list"),
|
||||
wrapClass = "full-screen-force",
|
||||
openGraph = lila.app.ui.OpenGraph(
|
||||
title = "Chess players and leaderboards",
|
||||
|
|
|
@ -35,7 +35,7 @@ data: ${safeJsonValue(data)}
|
|||
});
|
||||
});""")
|
||||
),
|
||||
moreCss = responsiveCssTag("perf-stat")
|
||||
moreCss = cssTag("perf-stat")
|
||||
) {
|
||||
main(cls := s"page-menu")(
|
||||
st.aside(cls := "page-menu__menu")(show.side(u, rankMap.some, perfType.some)),
|
||||
|
|
|
@ -38,8 +38,8 @@ object page {
|
|||
isGranted(_.UserSpy) option jsAt("compiled/user-mod.js")
|
||||
),
|
||||
moreCss = frag(
|
||||
responsiveCssTag("user.show.activity"),
|
||||
isGranted(_.UserSpy) option responsiveCssTag("mod.user")
|
||||
cssTag("user.show.activity"),
|
||||
isGranted(_.UserSpy) option cssTag("mod.user")
|
||||
)
|
||||
) {
|
||||
main(cls := "page-menu", dataUsername := u.username)(
|
||||
|
@ -76,10 +76,10 @@ object page {
|
|||
isGranted(_.UserSpy) option jsAt("compiled/user-mod.js")
|
||||
),
|
||||
moreCss = frag(
|
||||
responsiveCssTag("user.show.games"),
|
||||
if (filters.current.name == "search") responsiveCssTag("user.show.search")
|
||||
else info.nbs.crosstable.isDefined option responsiveCssTag("crosstable"),
|
||||
isGranted(_.UserSpy) option responsiveCssTag("mod.user")
|
||||
cssTag("user.show.games"),
|
||||
if (filters.current.name == "search") cssTag("user.show.search")
|
||||
else info.nbs.crosstable.isDefined option cssTag("crosstable"),
|
||||
isGranted(_.UserSpy) option cssTag("mod.user")
|
||||
)
|
||||
) {
|
||||
main(cls := "page-menu", dataUsername := u.username)(
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue