From 46553d82230a8a1d082cb3a0dcc75dc0e884ed98 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Wed, 9 Nov 2022 12:34:48 +0000
Subject: [PATCH] Different color for verified sites
---
epicyon-profile.css | 5 +++++
webapp_profile.py | 19 ++++++++++++++-----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/epicyon-profile.css b/epicyon-profile.css
index 0ac1a1819..78f736349 100644
--- a/epicyon-profile.css
+++ b/epicyon-profile.css
@@ -35,6 +35,7 @@
--pageslist-color: #dddddd;
--pageslist-selected-color: white;
--main-fg-color: #dddddd;
+ --verified-site-color: green;
--cw-color: #dddddd;
--cw-style: normal;
--cw-weight: bold;
@@ -1126,6 +1127,10 @@ h3 {
user-select: all;
}
+.verified_site {
+ color: var(--verified-site-color)
+}
+
@media screen and (min-width: 400px) {
body, html {
background-color: var(--main-bg-color);
diff --git a/webapp_profile.py b/webapp_profile.py
index e5733ac86..f8e5a8195 100644
--- a/webapp_profile.py
+++ b/webapp_profile.py
@@ -726,13 +726,18 @@ def html_profile(signing_priv_key_pem: str,
'
\n'
if website_url:
- donate_section += '' + translate['Website'] + ': '
+ donate_section += \
+ '
' + translate['Website'] + ': '
if site_is_verified(session, base_dir, http_prefix,
nickname, domain,
website_url, False, debug):
- donate_section += verified_site_checkmark
+ donate_section += \
+ verified_site_checkmark + \
+ '' + \
website_url + '
\n'
if gemini_link:
@@ -750,9 +755,13 @@ def html_profile(signing_priv_key_pem: str,
if site_is_verified(session, base_dir, http_prefix,
nickname, domain,
blog_address, False, debug):
- donate_section += verified_site_checkmark
+ donate_section += \
+ verified_site_checkmark + \
+ '' + \
blog_address + '\n'
if xmpp_address: