From e97a1dd7241d9f7214b609c8b3ee7ce176611f50 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Wed, 28 Aug 2024 18:13:58 +0300 Subject: [PATCH] CSS : Improve appearance of bookmarklet; Python : Eliminate value None for bookmarklet; XSLT : Add an additional indication of syndication; XHTML : Uniform appearance of title with Atom Feed. --- blasta.py | 2 +- stylesheet/stylesheet.css | 12 +++++++++++ stylesheet/stylesheet.xsl | 1 + template/about.xhtml | 1 + template/ask.xhtml | 1 + template/atomsub.xhtml | 1 + template/browse.xhtml | 1 + template/connect.xhtml | 1 + template/contact.xhtml | 1 + template/edit.xhtml | 1 + template/feeds.xhtml | 1 + template/folksonomy.xhtml | 1 + template/help.xhtml | 1 + template/ideas.xhtml | 1 + template/libervia.xhtml | 1 + template/movim.xhtml | 1 + template/now.xhtml | 1 + template/people.xhtml | 1 + template/philosophy.xhtml | 1 + template/profile.xhtml | 1 + template/projects.xhtml | 1 + template/pubsub.xhtml | 1 + template/questions.xhtml | 1 + template/register.xhtml | 1 + template/result.xhtml | 1 + template/search.xhtml | 1 + template/software.xhtml | 1 + template/syndication.xhtml | 1 + template/tag.xhtml | 1 + template/thanks.xhtml | 1 + template/utilities.xhtml | 41 +++++++++++++++++++------------------- template/xmpp.xhtml | 1 + 32 files changed, 63 insertions(+), 21 deletions(-) diff --git a/blasta.py b/blasta.py index ba0faec..b216511 100644 --- a/blasta.py +++ b/blasta.py @@ -677,7 +677,7 @@ class HttpInstance: jabber_id = Utilities.is_jid_matches_to_session(accounts, sessions, request) hostname = request.url.hostname protocol = request.url.scheme - hostname = request.url.hostname + ':' + str(request.url.port) + hostname = request.url.netloc origin = protocol + '://' + hostname bookmarklet = 'location.href=`' + origin + '/save?url=${encodeURIComponent(window.location.href)}&title=${encodeURIComponent(document.title)}`;' template_file = 'utilities.xhtml' diff --git a/stylesheet/stylesheet.css b/stylesheet/stylesheet.css index 7135205..91ebfc1 100644 --- a/stylesheet/stylesheet.css +++ b/stylesheet/stylesheet.css @@ -249,13 +249,25 @@ table#software td { vertical-align: text-top; } +#bookmarklet:hover { + background: #fff9df; +} + #bookmarklet { background: #eee; border: 1px solid #bbb; + font-weight: bold; + filter: drop-shadow(1px 1px 1px black); + margin-left: 3px; + margin-right: 3px; padding-left: 3px; padding-right: 3px; } +#bookmarklet a { + color: #0000ff; +} + #subscribe { /* font-size: 75%; */ padding-top: 1em; diff --git a/stylesheet/stylesheet.xsl b/stylesheet/stylesheet.xsl index db9c649..ebab3cc 100644 --- a/stylesheet/stylesheet.xsl +++ b/stylesheet/stylesheet.xsl @@ -68,6 +68,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>   + (syndication)