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

<div class="cell reply" id="p{{post.id}}">
  <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
      <td width="48" valign="top">
        <a href="{% url 'lbforum_profile' user_id=post.posted_by.pk %}">
          <img width="48px" height="48px" src="{{ post.posted_by.lbforum_profile.get_avatar_url }}" alt=""/>
        </a>
      </td>
      <td width="10"></td>
      <td width="auto" valign="top">
        <div class="fr" id="reply-btns">
          <strong>
            <small class="snow">#{% page_item_idx pages forloop %} - {{ post.created_on|lbtimesince }}
              {% if post.topic|topic_can_post:user %}
                &bull;
                <a href="{% url 'lbforum_new_replay' topic_id=topic.pk %}?qid={{post.pk}}">{% trans "quote" %}</a>
                {% if user == post.posted_by or can_admin %}
                  <a href="{% url 'lbforum_post_edit' post_id=post.pk %}">{% trans "edit" %}</a>
                {% endif %}
                {% if can_admin and not post.topic_post %}
                  <a href="{% url 'lbforum_post_delete' post_id=post.id %}" onclick="return confirm('{% trans "Do you want to delete it?" %}')">{% trans "delete" %}</a>
                {% endif %}
              {% endif %}
            </small>
          </strong>
        </div>

        <div class="sep3"></div>
        <strong><a href="{% url 'lbforum_profile' post.posted_by.pk %}" class="dark">{{post.posted_by.lbforum_profile}}</a></strong>
        <div class="sep5"></div>
        <div class="content reply_content">
          {% include 'lbforum/inc_post_content.html' %}
        </div>
      </td>
    </tr>
  </table>
</div>
