Add support for preview of conferences;
Fix some errors; Improve display of node items of type Atom Over XMPP (XEP-0277 and XEP-0472).
This commit is contained in:
parent
44718051d0
commit
aa90d922b0
10 changed files with 758 additions and 80 deletions
|
@ -31,19 +31,39 @@
|
|||
Download
|
||||
</a>
|
||||
</div>
|
||||
<div id="container-of-profile">
|
||||
<div id="profile-compact">
|
||||
|
||||
</div>
|
||||
<div id="profile">
|
||||
<h1>{{title}}</h1>
|
||||
{% if note %}
|
||||
<h2>{{note}}</h2>
|
||||
<div id="container-of-content">
|
||||
<div id="content">
|
||||
{% if links %}
|
||||
<div id="action-bar">
|
||||
{% for link in links %}
|
||||
<a href="{{link[1]}}">
|
||||
{{link[0]}}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="profile-top">
|
||||
{% if filename %}
|
||||
<img id="photo" src="/photo/{{filename}}" />
|
||||
{% endif %}
|
||||
<span>
|
||||
<h1>{{node_title}}</h1>
|
||||
<a href="/{{jid_bare}}/{{node_name}}">
|
||||
<h2>{{jid_title}}</h2>
|
||||
</a>
|
||||
{% if node_note %}
|
||||
<h3>
|
||||
{{node_note}}
|
||||
</h3>
|
||||
{% endif %}
|
||||
</span>
|
||||
<img id="qrcode" src="/qr/{{jid_bare}}.png" />
|
||||
</div>
|
||||
{% if entries %}
|
||||
<div id="entries">
|
||||
{% for entry in entries %}
|
||||
<div class="entry">
|
||||
<div class="entry"
|
||||
id="{{entry['id']}}">
|
||||
<strong>{{entry['title']}}</strong>
|
||||
<div class="summary">{{entry['content'] or entry['summary']}}</div>
|
||||
<div class="date">{{entry['updated'] or entry['published']}}</div>
|
||||
|
@ -56,6 +76,11 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
<div class="link">
|
||||
<a href="/d/{{jid_bare}}/{{node_name}}/{{entry['id']}}"
|
||||
title="Permalink (i.e. permanent link)"
|
||||
class="permalink">
|
||||
🔗️
|
||||
</a>
|
||||
<a href="{{entry['link']}}">
|
||||
{{entry['title']}}
|
||||
</a>
|
||||
|
@ -64,20 +89,33 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<pre id="xmpp-uri">{{xmpp_uri}}</pre>
|
||||
</div>
|
||||
{% if exception %}
|
||||
<div>
|
||||
<code id="exception">{{exception}}</code>
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- % if mix or muc % -->
|
||||
{% if link_href %}
|
||||
<div id="action">
|
||||
<a href="{{link_href}}">
|
||||
{{link_text}}
|
||||
</a>
|
||||
{% if number_of_pages %}
|
||||
<div id="number-of-pages">
|
||||
{% if number_of_pages > 5 %}
|
||||
<a href="?page=1">First</a>
|
||||
<a href="?page={{page_number-1}}">{{page_number-1}}</a>
|
||||
{% if number_of_pages > page_number %}
|
||||
<a href="?page={{page_number}}">{{page_number}}</a>
|
||||
{% endif %}
|
||||
{% if number_of_pages > page_number+1 %}
|
||||
<a href="?page={{page_number+1}}">{{page_number+1}}</a>
|
||||
{% endif %}
|
||||
<a href="?page={{number_of_pages}}">Last</a>
|
||||
{% else %}
|
||||
{% for number in range(number_of_pages) %}
|
||||
<a href="?page={{number+1}}">{{number+1}}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if previous %}
|
||||
<div id="number-of-pages">
|
||||
<a href="./">Previous</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue