bridgy-fed/templates/activities.html

47 wiersze
1.2 KiB
HTML

<div class="row">
<ul class="user-items">
{% for a in activities %}
<li class="row">
<div class="col-sm-{{ 7 if show_domains else 10 }}">
{{ a.actor_link()|safe }}
{{ a.phrase|safe }}
<a target="_blank" href="{{ a.url }}">
{{ a.content|default('--', true)|striptags|truncate(50) }}
</a>
</div>
{% if show_domains %}
<div class="col-sm-3">
{% for domain in a.domain %}
{% if loop.index0 == 3 %}
<span id="more-domains" style="display: none">
{% endif %}
<a href="/user/{{ domain }}">🌐 {{ domain }}</a>
<br>
{% endfor %}
{% if a.domain|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">
{% if a.status == 'error' %}
<span title="Error" class="glyphicon glyphicon-exclamation-sign"></span>
{% else %}{% if a.status == 'new' %}
<span title="Processing" class="glyphicon glyphicon-transfer"></span>
{% endif %}{% endif %}
{{ logs.maybe_link(a.updated, a.key.id())|safe }}
</div>
</li>
{% else %}
<li class="row">Nothing yet!</li>
{% endfor %}
</ul>
{% include "paging.html" %}