{% extends "layouts/main.html" %} {% block title %}{{ page_title }} — pyvelm{% endblock %} {% block page_title %}{{ page_title }}{% endblock %} {% block content %}
{% for w in widgets %}
{% if w.error %}

{{ w.title or w.id }}

{{ w.error }}

{% elif w.type == 'stat' %} {% elif w.type == 'link' %}

{{ w.subtitle }}

{{ w.title }}

{{ w.description }}

{% elif w.type == 'chart' %}
{% if w.title %}

{{ w.title }}

{% endif %}
{% if w.chart_data and w.chart_data.values %}
{% else %}

No data to chart.

{% endif %}
{% elif w.type == 'table' %}
{% if w.title %}

{{ w.title }}

{% else %} {% endif %} {% if w.more_href %} View all {% endif %}
{% for h in w.headers %} {% endfor %} {% for row in w.rows %} {% for cell in row.cells %} {% endfor %} {% else %} {% endfor %}
{{ h.label }}
{{ cell.html }}
No records.
{% endif %}
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}