bridgy-fed/templates/activities.html

56 wiersze
1.5 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 }}">
{% if a.actor_url %}
<a target="_blank" href="{{ a.actor_url }}" title="{{ a.actor_name|striptags }}">
{% endif %}
{% if a.actor_image %}
<img class="profile" src="{{ a.actor_image }}" width="32" />
{% endif %}
{{ a.actor_name|striptags|truncate(30) }}
{% if a.actor_url %}
</a>
{% endif %}
{{ 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" %}