X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Findex.pug;h=377aef949b1d641b6813100e8ddac8eb8e4cb9bd;hb=4608eed94432356bd2df8c144d7d233913c6483c;hp=6b13a4e9a10efd15ea1459e5a2f5a266efb04088;hpb=26b8e4f7c71030d49e44fe1d89632ef91b886d67;p=vchess.git diff --git a/views/index.pug b/views/index.pug index 6b13a4e9..377aef94 100644 --- a/views/index.pug +++ b/views/index.pug @@ -14,7 +14,7 @@ block content include welcome/fr .row #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - #mainTitle + #mainTitle.clickable(onClick="doClick('modalWelcome')") img(src="/images/index/unicorn.svg") .info-container p vchess.club @@ -22,16 +22,21 @@ block content #flagMenu.clickable(onClick="doClick('modalLang')") img(src="/images/flags/" + lang + ".svg") include userMenu - #introductionMenu.clickable(onClick="doClick('modalWelcome')") + a.right-menu(v-show="display=='variants'" href="#games") .info-container - p Introduction - .row + p My games + a.right-menu(v-show="display=='games'" href="#variants") + .info-container + p Variants + .row(v-show="display=='variants'") .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 label(for="prefixFilter") Type first letters... input#prefixFilter(v-model="curPrefix") - .row my-variant-summary(v-for="(v,idx) in sortedCounts" v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name") + .row(v-show="display=='games'") + .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 + p TODO: load from server, show timeControl + players + link "play" block javascripts script.