From b4da875da7eb557d17c3947e209afe6379d8fd87 Mon Sep 17 00:00:00 2001 From: mdPlusPlus Date: Tue, 24 Jan 2023 00:58:34 +0100 Subject: [PATCH] Replace preview text with http/s indicator --- output/styles2.css | 15 ++++++++++++++- sites/+components/tbl_communities.php | 10 +++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/output/styles2.css b/output/styles2.css index fa72fdc..40b4309 100644 --- a/output/styles2.css +++ b/output/styles2.css @@ -28,7 +28,8 @@ header { } #th_users { width:0% } .td_users { text-align: right; } -#th_preview { width:19%; } +#th_preview { max-width:5%; } +.td_preview { text-align: center; } #th_qr { width:0%; } #th_join_url { width:15%; } .td_join_url { @@ -68,6 +69,18 @@ footer nav a { #tbl_communities tr:nth-child(odd) { background-color: var(--alternate-row-color); } +.protocol-indicator { + display: inline-block; + font-family: monospace; + border-radius: 3px; + width: 6ch; + line-height: 22px; + text-align: center; +} +.protocol-http { background-color:lightgray } +.protocol-https { background-color:lightblue } + + /* */ .qr-code { display: block; diff --git a/sites/+components/tbl_communities.php b/sites/+components/tbl_communities.php index 57e7e5c..3e7e438 100644 --- a/sites/+components/tbl_communities.php +++ b/sites/+components/tbl_communities.php @@ -38,14 +38,18 @@ language?> name?> - description?> + description?> active_users?> - preview_link?> - + preview_link, 'http://')): ?> + HTTP + + preview_link, 'https://')): ?> + HTTPS +