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

<section class="last">
  {% with 40 as avatar_size %}
    {% if profile.user %}
      <div class="avatar span1"><a href="{% url "profile_detail" profile.user.username %}">{% avatar profile.user avatar_size %}</a></div>
    {% else %}
      <div class="avatar span1"><img width="{{ avatar_size }}px" src="{{ STATIC_URL }}geonode/img/default-avatar.jpg" /></div>
    {% endif %}
  {% endwith %}
  <div class="pull-left">
    <h3>
    {% if profile.user %}
      <a href="{{ profile.get_absolute_url }}">{{ profile.name }}</a>
    {% else %}
      {{ profile.name }}
    {% endif %}
    </h3>
    <div class="details">
      <div class="meta">
        <p>
          {% if profile.organization %}{{ profile.organization }}
            {% else %}{% trans "No Group" %}
          {% endif %}</p>
      </div>
    </div>
  </div>
</section>
