{% load friendly_loader %}
{% friendly_load avatar_tags %}
{% friendly_load relationship_tags %}
{% friendly_load activity_tags %}
{% load i18n %}

<article>
  <div class="content">
    <div class="item-header">
      <div class="avatar"><a href="{% url "profile_detail" profile.o.user.username %}" >{% avatar profile.o.user 100 %}</a></div>
      <h3><i class="icon-user"></i> <a href="{% url "profile_detail" profile.o.user.username %}">{{ profile.title }}</a>
      {% if user.is_authenticated %}
        {% if  profile.o.email %}<a href="mailto:{{ profile.o.email }}"><i class="icon-envelope-alt icon-large"></i></a>{% endif %}
      {% endif %}
      </h3>
    </div>
    <div class="details">
      <div class="meta">
        <p>
          {% if profile.o.organization %}{{ profile.o.organization }}
            {% else %}{% trans "No Organization Info" %}
          {% endif %}</p>
        <p class="abstract">
          {% if profile.o.profile %}{{ profile.o.profile }}{% endif %}
        </p>
          <ul class="nav stats">
            <li><a href="/people/profile/{{ profile.o.user.username }}/?content=layers"><strong>{{ profile.layer_count }}</strong> {% trans "Layers" %}</a></li>
            <li><a href="/people/profile/{{ profile.o.user.username }}/?content=maps"><strong>{{ profile.map_count }}</strong> {% trans "Maps" %}</a></li>
            {% if USE_DOCUMENTS %}
            <li><a href="/people/profile/{{ profile.o.user.username }}/?content=documents"><strong>{{ profile.document_count }}</strong> {% trans "Documents" %}</a></li>
            {% endif %}
          </ul>
      </div> <!-- ./meta -->
      {% if request.user != profile.o.user %}
        {% if_has_tag if_relationship %}
            {% include "relationships/_profile_follow.html" %}
        {% endif_has_tag %}
      {% endif %}

      {% if_has_tag actor_url %}
        <p><a href="{% actor_url profile.o.user %}" class="btn btn-mini" type="button">{% trans "My Activities" %}</a></p>
      {% endif_has_tag %}
    </div> <!-- ./details -->
  </div> <!-- ./content -->
</article>
