<div class="row">
<ul class="user-items">

{% for obj in objects %}
<li class="row">
  <div class="col-sm-{{ 7 if show_domains else 10 }}">
    {{ obj.actor_link()|safe }}
    {{ obj.phrase|safe }}
    <a target="_blank" href="{{ obj.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">
    {% if obj.status == 'failed' %}
     <span title="Error" class="glyphicon glyphicon-exclamation-sign"></span>
    {% else %}{% if obj.status == 'new' %}
     <span title="Processing" class="glyphicon glyphicon-transfer"></span>
    {% endif %}{% endif %}
    {{ logs.maybe_link(obj.updated, obj.key.id())|safe }}
  </div>
</li>
{% else %}
<li class="row">Nothing yet!</li>
{% endfor %}

</ul>

{% include "paging.html" %}
