From 24598c2068c0ab817ba4d96ae7c7f7330f7bc797 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 5 Mar 2023 17:41:32 +1000 Subject: [PATCH] add debug mode warning --- view/layout/main.pug | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/view/layout/main.pug b/view/layout/main.pug index 61f1014..8835783 100644 --- a/view/layout/main.pug +++ b/view/layout/main.pug @@ -33,6 +33,13 @@ html(style='overflow-y:auto' lang='en_US') block head body(style='overflow-y:auto') + if (process.env.APP_DEBUG == 'true') + p(style='color:darkred;font-weight:bold;font-size:16pt;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;opacity:0.25') + | Warning: THE WEBSITE IS IN DEBUG MODE! + br + | If the site is running in production, please + br + | contact the maintainer and notify them of the issue. table(width='100%' height='100%' class='body_table') tr td(class='side_menu')