From e24f3f9e35b83ce864e98da9f9e686f4076d035d Mon Sep 17 00:00:00 2001 From: x Date: Sat, 22 Mar 2025 15:37:42 +0100 Subject: [PATCH] adding terms of service --- public/s/css/w0bm.css | 4 + src/inc/routes/index.mjs | 6 ++ views/item.html | 29 ++++++-- views/snippets/navbar.html | 147 ++++++++++++++++++++++++++++--------- 4 files changed, 145 insertions(+), 41 deletions(-) diff --git a/public/s/css/w0bm.css b/public/s/css/w0bm.css index 19c3e1a..354a0dd 100644 --- a/public/s/css/w0bm.css +++ b/public/s/css/w0bm.css @@ -136,4 +136,8 @@ html[theme="f0ck"] .image-brand { .login-image { width: 300px; + } + + .tos { + margin: 2em; } \ No newline at end of file diff --git a/src/inc/routes/index.mjs b/src/inc/routes/index.mjs index 9d936dc..20aca11 100644 --- a/src/inc/routes/index.mjs +++ b/src/inc/routes/index.mjs @@ -111,6 +111,12 @@ export default (router, tpl) => { }); }); + router.get(/^\/(terms)$/, (req, res) => { + res.reply({ + body: tpl.render(req.url.split[0], { tmp: null }, req) + }); + }); + router.get(/^\/mode\/(\d)/, lib.loggedin, async (req, res) => { const mode = +req.url.split[1]; let referertmp = req.headers.referer; diff --git a/views/item.html b/views/item.html index 3dd9415..dd008c7 100644 --- a/views/item.html +++ b/views/item.html @@ -2,6 +2,7 @@
+
@@ -62,15 +63,23 @@
@if(typeof pagination !== "undefined") @endif
@@ -95,9 +104,6 @@ add tag - toggle @endif - @if(session) - {{phrase}} - @endif @if(item.favorites.length && session) @@ -108,7 +114,18 @@
+
+
+ +
blah
+
+
+

foo bar

+ by foobar timedate +
+
+
@include(snippets/footer) diff --git a/views/snippets/navbar.html b/views/snippets/navbar.html index 01939c2..96e7e58 100644 --- a/views/snippets/navbar.html +++ b/views/snippets/navbar.html @@ -1,3 +1,97 @@ + + @if(session) @@ -95,6 +171,7 @@ +