diff --git a/public/s/css/f0ck.css b/public/s/css/f0ck.css index a851442..16ac2d5 100644 --- a/public/s/css/f0ck.css +++ b/public/s/css/f0ck.css @@ -1790,6 +1790,11 @@ table img { .results { padding: 5px; } + +.mview_desc { + visibility: hidden; +} + /* fix for mobile table view in search! */ @media screen and (max-width: 650px) { table { @@ -1822,4 +1827,7 @@ table img { position: relative; width: 100%; } + .mview_desc { + visibility: visible; + } } \ No newline at end of file diff --git a/src/inc/sql.mjs b/src/inc/sql.mjs index ffacf9d..cb805f7 100644 --- a/src/inc/sql.mjs +++ b/src/inc/sql.mjs @@ -2,4 +2,9 @@ import postgres from "postgres"; import cfg from "./config.mjs"; -export default postgres(cfg.sql); +const db = postgres(cfg.sql); + +if(cfg.sql.schema) + await db.unsafe(`set schema '${cfg.sql.schema}';`); + +export default db; diff --git a/views/admin.html b/views/admin.html index fda528e..607fbe1 100644 --- a/views/admin.html +++ b/views/admin.html @@ -1,3 +1,10 @@ @include(snippets/header_admin) - +
Hier entsteht eine Internetpräsenz!
+ +@if(typeof totals !== "undefined") + total: {{ totals.total }} | tagged: {{ totals.tagged }} | untagged: {{ totals.untagged }} | sfw: {{ totals.sfw }} | nsfw: {{ totals.nsfw }} + @endif
+