First commit
[vchess.git] / views / index.pug
1 extends layout
2
3 block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6 block content
7 .container#indexPage
8 .row
9 .col-sm-12
10 h1.text-center Welcome to v[ariant] chess club !
11 .row
12 my-variant-summary(
13 v-for="(v,idx) in sortedCounts",
14 v-show="v.name.startsWith(curPrefix)",
15 v-bind:vobj="v",
16 v-bind:key="v.name")
17
18 block javascripts
19 script.
20 const variantArray = !{JSON.stringify(variantArray)};
21 //JSON.parse("!{variantArray}".replace(/\"/g,'"'));
22 script(src="/javascripts/utils/socket_url.js")
23 script(src="/javascripts/components/variantSummary.js")
24 script(src="/javascripts/index.js")