forked from sch/Blasta
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.
This commit is contained in:
parent
5c477c5fee
commit
e97a1dd724
32 changed files with 63 additions and 21 deletions
|
@ -677,7 +677,7 @@ class HttpInstance:
|
||||||
jabber_id = Utilities.is_jid_matches_to_session(accounts, sessions, request)
|
jabber_id = Utilities.is_jid_matches_to_session(accounts, sessions, request)
|
||||||
hostname = request.url.hostname
|
hostname = request.url.hostname
|
||||||
protocol = request.url.scheme
|
protocol = request.url.scheme
|
||||||
hostname = request.url.hostname + ':' + str(request.url.port)
|
hostname = request.url.netloc
|
||||||
origin = protocol + '://' + hostname
|
origin = protocol + '://' + hostname
|
||||||
bookmarklet = 'location.href=`' + origin + '/save?url=${encodeURIComponent(window.location.href)}&title=${encodeURIComponent(document.title)}`;'
|
bookmarklet = 'location.href=`' + origin + '/save?url=${encodeURIComponent(window.location.href)}&title=${encodeURIComponent(document.title)}`;'
|
||||||
template_file = 'utilities.xhtml'
|
template_file = 'utilities.xhtml'
|
||||||
|
|
|
@ -249,13 +249,25 @@ table#software td {
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bookmarklet:hover {
|
||||||
|
background: #fff9df;
|
||||||
|
}
|
||||||
|
|
||||||
#bookmarklet {
|
#bookmarklet {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
|
font-weight: bold;
|
||||||
|
filter: drop-shadow(1px 1px 1px black);
|
||||||
|
margin-left: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#bookmarklet a {
|
||||||
|
color: #0000ff;
|
||||||
|
}
|
||||||
|
|
||||||
#subscribe {
|
#subscribe {
|
||||||
/* font-size: 75%; */
|
/* font-size: 75%; */
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
|
|
|
@ -68,6 +68,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
|
||||||
<img src='/graphic/blasta_syndicate.svg'/>
|
<img src='/graphic/blasta_syndicate.svg'/>
|
||||||
 
|
 
|
||||||
<xsl:value-of select='atom:title'/>
|
<xsl:value-of select='atom:title'/>
|
||||||
|
(syndication)
|
||||||
</h1>
|
</h1>
|
||||||
<dl id='navigation'>
|
<dl id='navigation'>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / about
|
<a href="/">Blasta</a> / <a href="/help">help</a> / about
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / {{path}}
|
<a href="/">Blasta</a> / {{path}}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / atomsub
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / atomsub
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / {{path}}{% if jid and jid != jabber_id %} / <a href="/jid/{{jid}}">{{jid}}</a>{% endif %}
|
<a href="/">Blasta</a> / {{path}}{% if jid and jid != jabber_id %} / <a href="/jid/{{jid}}">{{jid}}</a>{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / connect
|
<a href="/">Blasta</a> / connect
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / contact
|
<a href="/">Blasta</a> / contact
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / {{path}}
|
<a href="/">Blasta</a> / {{path}}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / feeds
|
<a href="/">Blasta</a> / <a href="/help">help</a> / feeds
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / folksonomy
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / folksonomy
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / help
|
<a href="/">Blasta</a> / help
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / ideas
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / ideas
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / libervia
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / libervia
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / movim
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / movim
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / now
|
<a href="/">Blasta</a> / now
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / {{path}}
|
<a href="/">Blasta</a> / {{path}}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / philosophy
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / philosophy
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / profile
|
<a href="/">Blasta</a> / profile
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / projects
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / projects
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / pubsub
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / <a href="/help/about/xmpp">xmpp</a> / pubsub
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / questions
|
<a href="/">Blasta</a> / <a href="/help">help</a> / questions
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / register
|
<a href="/">Blasta</a> / register
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / {{path}}
|
<a href="/">Blasta</a> / {{path}}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / search / {{path}}
|
<a href="/">Blasta</a> / search / {{path}}
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / software
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / software
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / syndication
|
<a href="/">Blasta</a> / <a href="/help">help</a> / syndication
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / tag
|
<a href="/">Blasta</a> / tag
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / thanks
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / thanks
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / utilities
|
<a href="/">Blasta</a> / <a href="/help">help</a> / utilities
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
@ -74,11 +75,11 @@
|
||||||
<p>
|
<p>
|
||||||
Blasta offers a bookmarklet to facilitate the task of saving
|
Blasta offers a bookmarklet to facilitate the task of saving
|
||||||
HTTP links to your collection. Pin this
|
HTTP links to your collection. Pin this
|
||||||
<span id="bookmarklet">
|
<span id="bookmarklet"
|
||||||
|
title="Pin this link to your bookmarks bar.">
|
||||||
|
<a href="javascript:{{bookmarklet}}">
|
||||||
<img alt="Blasta"
|
<img alt="Blasta"
|
||||||
src="/graphic/blasta.svg"/>
|
src="/graphic/blasta.svg"/>
|
||||||
<a href="javascript:{{bookmarklet}}"
|
|
||||||
title="Pin this link to your bookmarks bar.">
|
|
||||||
Blastize!</a></span>
|
Blastize!</a></span>
|
||||||
bookmarklet to your bookmarks bar, and click on it
|
bookmarklet to your bookmarks bar, and click on it
|
||||||
when you want to save a link of a given page to your
|
when you want to save a link of a given page to your
|
||||||
|
@ -87,25 +88,25 @@
|
||||||
<p>
|
<p>
|
||||||
You can also pin these links to your bookmarks bar, in order
|
You can also pin these links to your bookmarks bar, in order
|
||||||
to swiftly navigate to your bookmarks with a single click.
|
to swiftly navigate to your bookmarks with a single click.
|
||||||
<span id="bookmarklet">
|
<span id="bookmarklet"
|
||||||
|
title="Pin this link to your bookmarks bar.">
|
||||||
|
<a href="/jid">
|
||||||
<img alt="Blasta"
|
<img alt="Blasta"
|
||||||
src="/graphic/blasta.svg"/>
|
src="/graphic/blasta.svg"/>
|
||||||
<a href="/jid"
|
|
||||||
title="Pin this link to your bookmarks bar.">
|
|
||||||
Blasta</a></span>
|
Blasta</a></span>
|
||||||
and
|
and
|
||||||
<span id="bookmarklet">
|
<span id="bookmarklet"
|
||||||
|
title="Pin this link to your bookmarks bar.">
|
||||||
|
<a href="/private">
|
||||||
<img alt="Blasta (Private)"
|
<img alt="Blasta (Private)"
|
||||||
src="/graphic/blasta.svg"/>
|
src="/graphic/blasta.svg"/>
|
||||||
<a href="/private"
|
|
||||||
title="Pin this link to your bookmarks bar.">
|
|
||||||
Private</a></span>
|
Private</a></span>
|
||||||
and
|
and
|
||||||
<span id="bookmarklet">
|
<span id="bookmarklet"
|
||||||
|
title="Pin this link to your bookmarks bar.">
|
||||||
|
<a href="/read">
|
||||||
<img alt="Blasta (Read)"
|
<img alt="Blasta (Read)"
|
||||||
src="/graphic/blasta.svg"/>
|
src="/graphic/blasta.svg"/>
|
||||||
<a href="/read"
|
|
||||||
title="Pin this link to your bookmarks bar.">
|
|
||||||
Reading List</a></span>.
|
Reading List</a></span>.
|
||||||
</p>
|
</p>
|
||||||
<h4 id="software">
|
<h4 id="software">
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<div id="header" class="row">
|
<div id="header" class="row">
|
||||||
<h1>
|
<h1>
|
||||||
<img src="/graphic/blasta.svg"/>
|
<img src="/graphic/blasta.svg"/>
|
||||||
|
|
||||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / xmpp
|
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / xmpp
|
||||||
</h1>
|
</h1>
|
||||||
<dl id="navigation">
|
<dl id="navigation">
|
||||||
|
|
Loading…
Reference in a new issue