{% extends host_template %}

{% load i18n fb_versions cyclope_utils dbgettext_tags %}

{% block content %}

      <div class="authors_category_title">{% trans "List of Authors" %}</div>

{% for author in author_list %}

{% with current_object=author %}
  <div class="content-view authors authors-teaser">
      
      <h1 class="title"><a href="{{ current_object.get_absolute_url }}">{{ current_object.name }}</a></h1>
  {% if current_object.image %}
      <div class="media-content">
        <img src="{% version current_object.image.path 'croppedthumbnail' %}" />
      </div>
      {% endif %}

      {% if current_object.notes %}
      <div class="notes"><a href="{{ current_object.get_absolute_url }}">{{ current_object.notes|smart_style }}</a></div>
      {% endif %}
      
  {% if current_object.origin %}
      <div class="origin">{{ current_object.origin }}</div>
      {% endif %}
      
      <div class="link"><a href="{{ current_object.get_absolute_url }}">{% trans "View contents" %}</a></div>

  </div>

{% endwith %}

{% endfor %}

  {% if page %}
    {% if view_options.sort_by == "ALPHABETIC" %}
      {% include 'cyclope/alphabetical_pagination_block.html' %}
    {% else %}
      {% include 'cyclope/pagination_block.html' %}
    {% endif %}
  {% endif %}

{% endblock content %}


