{% extends "layout.html" %} {% block body %}
{% if entries|length < 1 %}

No Results for: {{searchterm}}

Please try a diffrent Search

{% else %}

{{entries|length}} Results for: {{searchterm}}

{%endif%}
{% for entry in entries %}
{% if entry.has_cover is defined %} {% endif %}

{{entry.title|shortentitle}}

{{entry.authors[0].name}}

{% if entry.ratings.__len__() > 0 %}
{% for number in range((entry.ratings[0].rating/2)|int(2)) %} {% if loop.last and loop.index < 5 %} {% for numer in range(5 - loop.index) %} {% endfor %} {% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% endblock %}