{% extends "master.html" %} {% block title %}Home{% endblock %} {%block tag %}{{tag}}{% endblock %} {% block content %}

{{username}} sites

{% if not sites %}

You apparently did not register any sites yet.

{% else %}

You have currently {{ sites | length }} sites listed

{% endif %}
Register a new site

{% if sites %}
{% for title in ['Site Name', 'Hosts', 'Admin Active', 'User Active', 'Private', 'Bandwidth', 'Last crawled'] %} {% endfor %} {% for site in sites %} {% set even = loop.index % 2 == 0 %} {% if not site.hosts %} {% if even %} {% else %} {% endif %} {% else %} {% for host in site.hosts %} {% if even %} {% else %} {% endif %} {% if loop.first %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{{ title|safe }}
{{ site.name }}
{{ site.name }} {{ host.name }} {{ host.admin_active }} {{ host.user_active }} {{ host.private }} {{ host.bandwidth_int }} {{ host.last_crawled }}
{% endif %}
{% endblock %}