diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-09 12:54:36 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-13 14:10:20 +0200 |
commit | 9479b226f6cbfb53d66123a397f46cca0f682d45 (patch) | |
tree | 2d3bbe189f72e400f477ec1e910c21f12fd42ab7 /views/head.pug | |
parent | f6397dca9091cba8057f62815a9eabacf02ad098 (diff) | |
download | server-9479b226f6cbfb53d66123a397f46cca0f682d45.tar.gz |
Use status constants.
Diffstat (limited to 'views/head.pug')
-rw-r--r-- | views/head.pug | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/head.pug b/views/head.pug index cf0b268..2322250 100644 --- a/views/head.pug +++ b/views/head.pug @@ -50,6 +50,7 @@ mixin gamelist(list,hide_title=0) else if (item.status === 1 && !item.is_full) className += " replacement" else if (item.status === 1 && item.is_full) className += " active" else if (item.status === 2) className += " finished" + else if (item.status === 3) className += " archived" div(class=className) div.game_head @@ -82,6 +83,8 @@ mixin gamelist(list,hide_title=0) a(class="command" href="/join/"+item.game_id) Review else a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=Observer`) Review + when 3 + | Archived div.game_main div.game_info @@ -103,6 +106,9 @@ mixin gamelist(list,hide_title=0) when 2 div Finished: #{item.mtime} div Result: !{item.result} + when 3 + div Finished: #{item.mtime} + div Result: !{item.result} unless hide_title a(href=`/${item.title_id}`) img(src=`/${item.title_id}/thumbnail.jpg`) |