{% load humanizelib %}
{% with stats=service.get_daily_stats %}

{{service.name}}

{% if stats.currently_online > 0 %} {{stats.currently_online|intcomma}} online {% elif stats.online == True %} Online {% elif stats.online == False %} Offline {% endif %}

Sessions

{{stats.sessions|intcomma}}

Pages/Session

{{stats.avg_hits_per_session|floatformat:"-1"}}

Bounce Rate

{{stats.bounce_rate_pct|floatformat:"-1"}}%

Avg. Session

{{stats.avg_session_duration|naturaldelta}}

Uptime

{{stats.uptime|floatformat:"-1"}}%

{% endwith %}