diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-03-15 18:30:54 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-14 12:27:41 +0100 |
commit | ccb823bb740ed1018560a2077673f7293c0789e4 (patch) | |
tree | d9b24e503e30a290b04c14158d0a5d5ed56392f9 /views | |
parent | 46e41519710847479db22e11f1f97ff49425309e (diff) | |
download | server-ccb823bb740ed1018560a2077673f7293c0789e4.tar.gz |
Attach archive.db to access archived games.
Diffstat (limited to 'views')
-rw-r--r-- | views/head.pug | 11 |
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 |