diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-14 17:17:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-20 13:14:24 +0100 |
commit | d1318d147297161691f5048e1f2cb4e516159144 (patch) | |
tree | f8858e16eece0e4a1bf8deb29548c6421b54df03 /views/index.ejs | |
parent | f02fb77b1cb34b4622f2c90597ff616d4de65fc5 (diff) | |
download | server-d1318d147297161691f5048e1f2cb4e516159144.tar.gz |
Add 'hidden' column to titles for beta-testing games.
Diffstat (limited to 'views/index.ejs')
-rw-r--r-- | views/index.ejs | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/views/index.ejs b/views/index.ejs index 0b3180f..1f23381 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,6 +1,6 @@ -<%- include('header', { title: "Rally the Troops!" }) %> +<%- include('header', { title: "Rally the Troops!" }) _%> <style> -.list { display: flex; flex-wrap: wrap; justify-content: left; } +.list { display: flex; flex-wrap: wrap; justify-content: left; max-width: 800px; } .list a { margin: 1em; display: block; } .list img { box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5); height: 200px; } </style> @@ -13,15 +13,16 @@ players. Registration and use is free, and there are no ads. <div class="list"> -<a href="/info/crusader-rex"><img src="/crusader-rex/cover.jpg"></a> -<a href="/info/hammer-of-the-scots"><img src="/hammer-of-the-scots/cover.jpg"></a> -<a href="/info/julius-caesar"><img src="/julius-caesar/cover.jpg"></a> -<a href="/info/richard-iii"><img src="/richard-iii/cover.jpg"></a> -</div> - -<div class="list"> -<a href="/info/300-earth-and-water"><img src="/300-earth-and-water/cover.jpg"></a> -<a href="/info/shores-of-tripoli"><img src="/shores-of-tripoli/cover.jpg"></a> +<% + for (let t in titles) { + let title = titles[t]; + if (!title.hidden) { +_%> +<a href="/info/<%- title.title_id %>"><img src="/<%- title.title_id %>/cover.jpg"></a> +<% + } + } +_%> </div> <p> |