{% extends "admin/base.html" %} {% block title %}{{ page_title('Hera') }}{% endblock %} {% block content %}

Hera

Stats

{% for i in boxes %}

{{ i.location }}

{% if i.stats %} {% if i.stats.num_lookups > 0 %} {# Can't jinja2 detect a division by zero and just do something intelligent? #} {% set hit_percentage = 100 * i.stats.num_hits / i.stats.num_lookups %} {% else %} {% set hit_percentage = 0 %} {% endif %} {% else %}

Not Available

{% endif %} {% endfor %}
{% endblock %}