From ccb823bb740ed1018560a2077673f7293c0789e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 15 Mar 2024 18:30:54 +0100 Subject: Attach archive.db to access archived games. --- views/head.pug | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'views') 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 -- cgit v1.2.3