Skip to content
This repository
tree: 750a0343f1
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (17 sloc) 0.997 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{% load url from future %}
{% load i18n %}
{% load agon_ratings_tags %}
{% load documents_tags %}

{% overall_rating document "document" as document_rating %}
<article>
<a href="{% url "document_detail" document.id %}">
      <div class="placeholder pl-153-113">{% trans "No Image Available" %}</div>
  </a>
  <div class="details">
    <a href="#" class="btn btn-info download">{% trans "Download" %}</a>
    <a href="{% url "document_detail" document.id %}"><h3>{{ document.title }}</h3></a>
    <div class="meta">{% trans 'from' %} <a href="{% url "profile_detail" document.owner.username %}">{{ document.owner }}</a>, {{ document.date|timesince }} {% trans 'ago' %}</div>
    <p class="abstract">{{ document.abstract }}</p>
    <p class="activity">{{ document.popular_count }} {% trans "view" %}{{ document.popular_count|pluralize }} | <span class="avg_rating" data-rating="{{ document_rating }}">{% trans "Average rating" %} <span class="overall_rating"></span></span></p>
  </div>
</article>
Something went wrong with that request. Please try again.