2024-08-22 16:09:04 +02:00
<?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" / >
2024-08-25 11:44:59 +02:00
< title > Blasta / {{path}}< / title >
2024-08-22 16:09:04 +02:00
< 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" />
2024-09-04 16:31:52 +02:00
< script src = "/script/regulator.js" / >
2024-08-22 16:09:04 +02:00
< link rel = "alternate" type = "application/atom+xml"
2024-08-27 13:26:41 +02:00
title="Follow updates on /{% if jid %}jid/{% endif %}{{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="/{% if jid %}jid/{% endif %}{{syndicate}}?mode=feed{% if param_tags %}& tags={{param_tags}}{% endif %}{% if param_url %}& url={{param_url}}{% endif %}{% if param_hash %}& hash={{param_hash}}{% endif %}" />
2024-08-22 16:09:04 +02:00
< 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" / >
2024-08-28 17:13:58 +02:00
2024-09-04 16:31:52 +02:00
< a href = "/" >
Blasta
< / a >
/ {{path}}
{% if jid and jid != jabber_id %}
/
< a href = "/jid/{{jid}}" >
{{jid}}
< / a >
{% endif %}
2024-08-22 16:09:04 +02:00
< / h1 >
< dl id = "navigation" >
< dd >
2024-09-04 16:31:52 +02:00
< a href = "/" >
< img alt = "Main"
src="/graphic/blasta.svg"/>
< / a >
2024-08-22 16:09:04 +02:00
< / dd >
{% if jabber_id %}
< dd >
2024-08-28 14:03:19 +02:00
< a href = "/save" > Add< / a >
2024-08-22 16:09:04 +02:00
< / dd >
< dd >
2024-08-28 14:03:19 +02:00
{% if node_type == 'public' %}
< b > Public< / b >
{% else %}
< a href = "/jid" > Public< / a >
{% endif %}
2024-08-22 16:09:04 +02:00
< / dd >
< dd >
2024-08-28 14:03:19 +02:00
{% if node_type == 'private' %}
< b > Private< / b >
{% else %}
< a href = "/private" > Private< / a >
{% endif %}
< / dd >
< dd >
{% if node_type == 'read' %}
< b > Read< / b >
{% else %}
< a href = "/read" > Read< / a >
{% endif %}
2024-08-22 16:09:04 +02:00
< / dd >
{% endif %}
< dd >
< a href = "/search{% if jid %}/jid/{{jid}}{% endif %}" > Search< / a >
< / dd >
< dd >
2024-08-28 14:03:19 +02:00
{% if page_type == 'popular' %}
< b > Popular< / b >
{% else %}
< a href = "/popular" > Popular< / a >
{% endif %}
2024-08-22 16:09:04 +02:00
< / dd >
< dd >
2024-08-28 14:03:19 +02:00
{% if page_type == 'recent' %}
< b > Recent< / b >
{% else %}
< a href = "/recent" > Recent< / a >
{% endif %}
2024-08-22 16:09:04 +02:00
< / 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" >
2024-08-28 18:01:08 +02:00
< h2 >
< img alt = "💡" src = "/graphic/xmpp.svg" width = "18" height = "18" / >
PubSub bookmarks
< / h2 >
2024-08-22 16:09:04 +02:00
{% 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 %}
2024-08-28 14:03:19 +02:00
{% if entries %}
< dl id = "posts" >
2024-08-22 16:09:04 +02:00
{% for entry in entries %}
< dd >
2024-08-28 14:03:19 +02:00
< article class = "h-entry" >
2024-08-22 16:09:04 +02:00
< h4 >
2024-08-28 14:03:19 +02:00
< a class = "p-name title"
2024-08-22 16:09:04 +02:00
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" >
2024-08-28 14:03:19 +02:00
add this< / a >
2024-08-22 16:09:04 +02:00
{% endif %}
{% endif %}
< p class = "p-summary summary" > {{entry['summary']}}< / p >
< div class = "details" >
2024-08-28 15:25:22 +02:00
< span class = "tags" >
{% 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 %}
< / span >
2024-08-22 16:09:04 +02:00
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 %}
2024-08-28 14:03:19 +02:00
< / dl >
{% endif %}
2024-08-22 16:09:04 +02:00
< / div >
< div id = "related-tags" >
2024-08-28 14:03:19 +02:00
< h3 >
{% if path == 'url' %}
Tags
{% else %}
Related tags
{% endif %}
< / h3 >
2024-08-22 16:09:04 +02:00
< dl >
{% for tag in tags %}
< dd >
< a href = "{% if jid %}/jid/{{jid}}{% elif path in ('query', 'url') %}/{% endif %}?tags={{tag}}" >
{{tag}}
< / a >
2024-08-25 11:44:59 +02:00
{% if tags[tag] %}
({{tags[tag]}})
{% endif %}
2024-08-22 16:09:04 +02:00
< / 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 >
2024-08-25 11:44:59 +02:00
< img alt = "💡" src = "/graphic/xmpp.svg" width = "16" height = "16" / >
2024-08-22 16:09:04 +02:00
< a href = "xmpp:{{pubsub_jid}}?pubsub;action=subscribe;node={{node_id}}" >
PubSub
< / a >
and
2024-08-25 11:44:59 +02:00
< img alt = "⚛" class = "enlarge" src = "/graphic/syndicate.svg" width = "16" height = "16" / >
2024-08-27 13:26:41 +02:00
< a href = "/{% if jid %}jid/{% endif %}{{syndicate}}?mode=feed{% if param_tags %}&tags={{param_tags}}{% endif %}{% if param_url %}&url={{param_url}}{% endif %}{% if param_hash %}&hash={{param_hash}}{% endif %}" >
2024-08-22 16:09:04 +02:00
RSS
<!-- img src="/graphic/atom.svg" width="36" height="14" alt="Atom"/ -->
< / a >
2024-08-25 11:44:59 +02:00
syndication feeds for this page are available.
2024-08-22 16:09:04 +02:00
< / 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 >