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)
|
||||
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'
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -68,6 +68,7 @@ xmlns:atom='http://www.w3.org/2005/Atom'>
|
|||
<img src='/graphic/blasta_syndicate.svg'/>
|
||||
 
|
||||
<xsl:value-of select='atom:title'/>
|
||||
(syndication)
|
||||
</h1>
|
||||
<dl id='navigation'>
|
||||
<dd>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / about
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / {{path}}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<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
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / {{path}}{% if jid and jid != jabber_id %} / <a href="/jid/{{jid}}">{{jid}}</a>{% endif %}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / connect
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / contact
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / {{path}}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / feeds
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / folksonomy
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / help
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / ideas
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<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
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<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
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / now
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / {{path}}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / philosophy
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / profile
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / projects
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<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
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / questions
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / register
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / {{path}}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / search / {{path}}
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / software
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / syndication
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / tag
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / thanks
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / utilities
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
@ -74,11 +75,11 @@
|
|||
<p>
|
||||
Blasta offers a bookmarklet to facilitate the task of saving
|
||||
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"
|
||||
src="/graphic/blasta.svg"/>
|
||||
<a href="javascript:{{bookmarklet}}"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
Blastize!</a></span>
|
||||
bookmarklet to your bookmarks bar, and click on it
|
||||
when you want to save a link of a given page to your
|
||||
|
@ -87,25 +88,25 @@
|
|||
<p>
|
||||
You can also pin these links to your bookmarks bar, in order
|
||||
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"
|
||||
src="/graphic/blasta.svg"/>
|
||||
<a href="/jid"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
Blasta</a></span>
|
||||
and
|
||||
<span id="bookmarklet">
|
||||
<span id="bookmarklet"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
<a href="/private">
|
||||
<img alt="Blasta (Private)"
|
||||
src="/graphic/blasta.svg"/>
|
||||
<a href="/private"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
Private</a></span>
|
||||
and
|
||||
<span id="bookmarklet">
|
||||
<span id="bookmarklet"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
<a href="/read">
|
||||
<img alt="Blasta (Read)"
|
||||
src="/graphic/blasta.svg"/>
|
||||
<a href="/read"
|
||||
title="Pin this link to your bookmarks bar.">
|
||||
Reading List</a></span>.
|
||||
</p>
|
||||
<h4 id="software">
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div id="header" class="row">
|
||||
<h1>
|
||||
<img src="/graphic/blasta.svg"/>
|
||||
|
||||
<a href="/">Blasta</a> / <a href="/help">help</a> / <a href="/help/about">about</a> / xmpp
|
||||
</h1>
|
||||
<dl id="navigation">
|
||||
|
|
Loading…
Reference in a new issue