266 lines
13 KiB
HTML
266 lines
13 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
|
<head>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="color-scheme" content="dark light" />
|
||
|
<title>Blasta</title>
|
||
|
<link rel="shortcut icon" href="/graphic/blasta.svg" />
|
||
|
<link rel="icon" type="image/svg+xml" href="/graphic/blasta.svg" />
|
||
|
<link rel="stylesheet" type="text/css" media="screen"
|
||
|
href="/stylesheet/stylesheet.css" />
|
||
|
<link rel="alternate" type="application/atom+xml"
|
||
|
title="Follow updates on /{{syndicate}}{% if param_tags %} for Tag: #{{param_tags}}{% endif %}{% if param_url %} for URL: {{param_url}}{% endif %}{% if param_hash %} for hash: {{param_hash}}{% endif %}"
|
||
|
href="/{{syndicate}}?mode=feed{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_url %}&url={{param_url}}{% endif %}{% if param_hash %}&hash={{param_hash}}{% endif %}" />
|
||
|
<link rel="alternate" type="application/atom+xml"
|
||
|
title="Subscribe to PubSub /{{syndicate}}{% if param_tags %} for Tag: #{{param_tags}}{% endif %}{% if param_url %} for URL: {{param_url}}{% endif %}{% if param_hash %} for hash: {{param_hash}}{% endif %}"
|
||
|
href="xmpp:{{pubsub_jid}}?pubsub;action=subscribe;node={{node_id}}" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="container">
|
||
|
<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">
|
||
|
<dd>
|
||
|
<img src="/graphic/blasta.svg"/>
|
||
|
</dd>
|
||
|
{% if jabber_id %}
|
||
|
<dd>
|
||
|
<a href="/jid">Public</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/private">Private</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/read">Read</a>
|
||
|
</dd>
|
||
|
{% endif %}
|
||
|
<dd>
|
||
|
<a href="/search{% if jid %}/jid/{{jid}}{% endif %}">Search</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/popular">Popular</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/recent">Recent</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
{% if jabber_id %}
|
||
|
<a href="/disconnect">Disconnect</a>
|
||
|
{% else %}
|
||
|
<a href="/connect">Connect</a>
|
||
|
{% endif %}
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<div id="main" class="row">
|
||
|
<div id="content">
|
||
|
<h2> PubSub Bookmarks</h2>
|
||
|
{% if pager %}
|
||
|
{% if page_next or page_prev %}
|
||
|
<div id="navigate-top">
|
||
|
{% if page_prev %}
|
||
|
«
|
||
|
<a href="?page={{page_prev}}{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_query %}&q={{param_query}}{% endif %}">
|
||
|
<b>retract</b></a>
|
||
|
{% else %}
|
||
|
<span class="inactive">« retract</span>
|
||
|
{% endif %}
|
||
|
or
|
||
|
{% if page_next %}
|
||
|
<a href="?page={{page_next}}{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_query %}&q={{param_query}}{% endif %}">
|
||
|
<b>proceed</b></a>
|
||
|
»
|
||
|
{% else %}
|
||
|
<span class="inactive">proceed »</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
{% if message %}
|
||
|
<p>
|
||
|
» {{message}}
|
||
|
{% if message_link %}
|
||
|
<a href="{{message_link['href']}}">
|
||
|
{{message_link['text']}}</a>.
|
||
|
{% endif %}
|
||
|
</p>
|
||
|
{% endif %}
|
||
|
<h3>{{description}}</h3>
|
||
|
{% if start %}
|
||
|
<p>
|
||
|
<a href="/save">Start</a>
|
||
|
your PubSub bookmarks directory with Blasta!
|
||
|
</p>
|
||
|
{% endif %}
|
||
|
<dl id="posts">
|
||
|
{% if entries %}
|
||
|
{% for entry in entries %}
|
||
|
<dd>
|
||
|
<article class="h-entry title">
|
||
|
<h4>
|
||
|
<a class="p-name"
|
||
|
href="{{entry['link']}}">
|
||
|
{{entry['title']}}</a>
|
||
|
</h4>
|
||
|
<!-- TODO Edit to be possible if entry is present -->
|
||
|
<!-- {% if jabber_id and entry['present'] %}{% endif %} -->
|
||
|
{% if jabber_id %}
|
||
|
{% if restore %}
|
||
|
<a href="{{link_save}}">restore</a>
|
||
|
{% elif delete %}
|
||
|
<a href="/url/{{entry['url_hash']}}/delete"
|
||
|
id="confirm">confirm deletion</a>
|
||
|
{% elif jabber_id == jid or exist or path in ('private', 'read') %}
|
||
|
<a href="/url/{{entry['url_hash']}}/edit">
|
||
|
edit</a>
|
||
|
/
|
||
|
<a href="/url/{{entry['url_hash']}}/confirm">
|
||
|
delete</a>
|
||
|
{% else %}
|
||
|
<a href="/url/{{entry['url_hash']}}/edit">
|
||
|
add</a>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
<p class="p-summary summary">{{entry['summary']}}</p>
|
||
|
<div class="details">
|
||
|
{% if entry['tags'] | length > 0 %}
|
||
|
to
|
||
|
{% for tag in entry['tags'] %}
|
||
|
<a class="p-category"
|
||
|
href="{% if jid %}/jid/{{jid}}{% elif path in ('query', 'url') %}/{% endif %}?tags={{tag}}">
|
||
|
{{tag}}
|
||
|
</a>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
by
|
||
|
{% if jid %}
|
||
|
<a class="p-author" href="/jid/{{jid}}">{{jid}}</a>
|
||
|
{% else %}
|
||
|
<a class="p-author" href="/jid/{{entry['jid']}}">{{entry['name']}}</a>
|
||
|
{% endif %}
|
||
|
…
|
||
|
<a class="u-uid u-url" href="/url/{{entry['url_hash']}}">
|
||
|
{% if entry['instances'] and entry['instances'] != 1 %}
|
||
|
{% if entry['instances'] > 5000 %}
|
||
|
<span class="instances-degree-fifth">
|
||
|
{% elif entry['instances'] > 500 %}
|
||
|
<span class="instances-degree-fourth">
|
||
|
{% elif entry['instances'] > 50 %}
|
||
|
<span class="instances-degree-third">
|
||
|
{% elif entry['instances'] > 5 %}
|
||
|
<span class="instances-degree-second">
|
||
|
{% else %}
|
||
|
<span class="instances-degree-first">
|
||
|
{% endif %}
|
||
|
{% if entry['instances'] == 2 %}
|
||
|
and another one
|
||
|
{% else %}
|
||
|
and {{entry['instances']}} others
|
||
|
{% endif %}</span>
|
||
|
{% else %}
|
||
|
<span>details</span>
|
||
|
{% endif %}
|
||
|
</a>
|
||
|
at
|
||
|
<span class="dt-published date"
|
||
|
datetime="{{entry['published']}}">
|
||
|
{{entry['published_mod']}}
|
||
|
</span>
|
||
|
</div>
|
||
|
</article>
|
||
|
</dd>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
</dl>
|
||
|
</div>
|
||
|
<div id="related-tags">
|
||
|
<h3>Related tags</h3>
|
||
|
<dl>
|
||
|
{% for tag in tags %}
|
||
|
<dd>
|
||
|
<a href="{% if jid %}/jid/{{jid}}{% elif path in ('query', 'url') %}/{% endif %}?tags={{tag}}">
|
||
|
{{tag}}
|
||
|
</a>
|
||
|
({{tags[tag]}})
|
||
|
</dd>
|
||
|
{% endfor %}
|
||
|
<dd>
|
||
|
»
|
||
|
<a href="/tag/{% if jid %}{{jid}}{% endif %}">see more tags</a>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% if pager %}
|
||
|
{% if page_next or page_prev %}
|
||
|
<div id="navigate-bottom" class="row">
|
||
|
{% if page_prev %}
|
||
|
« <a href="?page={{page_prev}}{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_query %}&q={{param_query}}{% endif %}"><b>retract</b></a>
|
||
|
{% else %}
|
||
|
<span class="inactive">« retract</span>
|
||
|
{% endif %}
|
||
|
or
|
||
|
{% if page_next %}
|
||
|
<a href="?page={{page_next}}{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_query %}&q={{param_query}}{% endif %}"><b>proceed</b></a> »
|
||
|
{% else %}
|
||
|
<span class="inactive">proceed »</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
<div id="subscribe" class="row">
|
||
|
<p>
|
||
|
<a href="xmpp:{{pubsub_jid}}?pubsub;action=subscribe;node={{node_id}}">
|
||
|
<img src="/graphic/xmpp.svg" width="16" height="16"/>
|
||
|
PubSub
|
||
|
</a>
|
||
|
and
|
||
|
<a href="/{{syndicate}}?mode=feed{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_url %}&url={{param_url}}{% endif %}{% if param_hash %}&hash={{param_hash}}{% endif %}">
|
||
|
<img src="/graphic/syndicate.svg" width="16" height="16"/>
|
||
|
RSS
|
||
|
<!-- img src="/graphic/atom.svg" width="36" height="14" alt="Atom"/ -->
|
||
|
</a>
|
||
|
feeds for this page are available.
|
||
|
</p>
|
||
|
</div>
|
||
|
<div id="footer" class="row">
|
||
|
<dl>
|
||
|
<dd>
|
||
|
<img src="/graphic/blasta.svg" alt="logo"/>
|
||
|
<a href="/">blasta</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help/about">about</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help/about/xmpp">xmpp</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help/about/xmpp/pubsub">pubsub</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="{{journal}}">journal</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help">help</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help/policy">policy</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/help/feeds">rss</a>
|
||
|
</dd>
|
||
|
<dd>
|
||
|
<a href="/contact">contact</a>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|