{% extends 'lbforum/profile/base.html' %}

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

{% block title %}
  {% blocktrans %}{{ view_user.lbforum_profile }}'s posts{% endblocktrans %}
{% endblock %}

{% block content_content %}
  {% include 'lbforum/profile/inc_base_profile.html' %}
  <div class="sep20"></div>
  {% paginate posts %}
  {% get_pages %}
  <div class="box">
    <div class="cell">
      <span class="fade">{% blocktrans %}Posts by{% endblocktrans %} {{ view_user.lbforum_profile }}</span>
    </div>
    {% for post in posts %}
      <div class="cell reply">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>
              <td width="auto" valign="top">
                <div id="reply-btns" class="fr">
                  <strong>
                    <small class="snow">#{% page_item_idx pages forloop %} - {{ post.created_on|lbtimesince }}</small>
                  </strong>
                </div>

                <div class="sep3"></div>
                <strong>
                  <a href="{{ post.get_absolute_url }}">{{ post.subject }}</a>
                </strong>
                <div class="sep5"></div>
                <div class="content reply_content">
                  {{ post.message|bbcode }}
                </div>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    {% endfor %}
    <div class="inner">
      {% show_pages %}
    </div>
  </div>
{% endblock %}
