summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-15 18:30:54 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-14 12:27:41 +0100
commitccb823bb740ed1018560a2077673f7293c0789e4 (patch)
treed9b24e503e30a290b04c14158d0a5d5ed56392f9 /views/head.pug
parent46e41519710847479db22e11f1f97ff49425309e (diff)
downloadserver-ccb823bb740ed1018560a2077673f7293c0789e4.tar.gz
Attach archive.db to access archived games.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/head.pug b/views/head.pug
index 61ca688..75e1135 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -109,7 +109,16 @@ mixin gamelist(list,hide_title=0)
else
a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}`) Review
when 3
- | Archived
+ if ENABLE_ARCHIVE
+ if item.is_yours
+ if item.your_role
+ a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=${encodeURIComponent(item.your_role)}`) Archived
+ else
+ a(class="command" href="/join/"+item.game_id) Archived
+ else
+ a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=Observer`) Archived
+ else
+ | Archived
div.game_main
div.game_info