kopia lustrzana https://github.com/snarfed/bridgy-fed
65 wiersze
1.7 KiB
HTML
65 wiersze
1.7 KiB
HTML
<div class="row">
|
|
<ul class="user-items h-feed">
|
|
|
|
{% for obj in objects %}
|
|
<li class="row h-entry">
|
|
<div class="e-content col-sm-{{ 5 if show_domains else 8 }}">
|
|
{{ obj.actor_link()|safe }}
|
|
{{ obj.phrase|safe }}
|
|
<a target="_blank" href="{{ obj.url }}" class="u-url">
|
|
{{ obj.content|default('--', true)|striptags|truncate(50) }}
|
|
</a>
|
|
</div>
|
|
|
|
{% if show_domains %}
|
|
<div class="col-sm-3">
|
|
{% for domain in obj.domains %}
|
|
{% if loop.index0 == 3 %}
|
|
<span id="more-domains" style="display: none">
|
|
{% endif %}
|
|
<a href="/user/{{ domain }}">🌐 {{ domain }}</a>
|
|
<br>
|
|
{% endfor %}
|
|
{% if obj.domains|length > 3 %}
|
|
</span>
|
|
<a onclick="toggle('more-domains'); toggle('show-more-domains'); return false"
|
|
id="show-more-domains" href="#" />...</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="col-sm-2">
|
|
{{ logs.maybe_link(obj.updated, obj.key.id())|safe }}
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
<ul class="deliveries">
|
|
{% if obj.delivered %}
|
|
<li title="Delivered sucessfully">
|
|
<span class="glyphicon glyphicon-ok-sign"></span>
|
|
{{ obj.delivered|length }}
|
|
</li>
|
|
{% endif %}
|
|
{% if obj.undelivered %}
|
|
<li title="Remaining to be delivered">
|
|
<span class="glyphicon glyphicon-transfer"></span>
|
|
{{ obj.undelivered|length }}
|
|
</li>
|
|
{% endif %}
|
|
{% if obj.failed %}
|
|
<li title="Failed delivery">
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span>
|
|
{{ obj.failed|length }}
|
|
</li>
|
|
{% endif %}
|
|
<ul>
|
|
</div>
|
|
</li>
|
|
{% else %}
|
|
<li class="row">Nothing yet!</li>
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% include "paging.html" %}
|