{% load i18n %}
{% load lbforum_filters %}
{% load lbforum_tags %}

<div class="cell">
  <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>
      <tr>
        <td valign="top" class="avatar">
          <a class="dark" href="{% url 'lbforum_profile' user_id=t.posted_by.pk %}">
            <img width="48px" height="48px" src="{{ t.posted_by.lbforum_profile.get_avatar_url }}" alt=""/>
          </a>
        </td>
        <td valign="top" style="padding-left: 12px">
          <div class="fr">
            <a class="count_livid" href="{{ t.get_absolute_url }}">{{ t.num_replies }}</a>
          </div>
          <div class="sep3"></div>
          <span style="color:#636A86" class="bigger">
            {% if t.closed %}
              <strong>[{% trans "Closed" %}]</strong>
            {% endif %}
            {% if t.sticky %}
              <strong>[{% trans "Sticky" %}]</strong>
            {% endif %}
            {% if t.hidden %}
              <strong>[{% trans "Hided" %}]</strong>
            {% endif %}
            {% if t.level == 60 %}
              <strong>[{% trans "Distillate" %}]</strong>
            {% endif %}
            {% if t.t_type %}
              [{{ t.t_type }}]
            {% endif %}
            <a href="{{ t.get_absolute_url }}">{{t.subject}}</a>
          </span>
          <div class="sep5"></div>
          <span class="created">
            {% if not forum %}
              <strong><a class="node" href="{% url 'lbforum_forum' forum_slug=t.forum.slug %}">{{t.forum.name}}</a></strong> &bull;
            {% endif %}
            <strong><a class="dark" href="{% url 'lbforum_profile' user_id=t.posted_by.pk %}">{{t.posted_by.lbforum_profile}}</a></strong> &bull;
            {{ t.num_views }} {% trans "views" %} &bull;
            {% trans "Last post" %} {{ t.last_post.created_on |lbtimesince }} by
            {{ t.last_post.posted_by.lbforum_profile }}
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</div>
