{% extends "vantage/base.html" %} {% load i18n %} {% comment %} The fallback renderer. A page with its own template never reaches this file; this exists so the FIRST page someone writes is worth looking at before they have written any HTML at all. {% endcomment %} {% block content %}

{{ page_title }}

{% if page_description %}

{{ page_description }}

{% endif %}
{% if page_data %} {% comment %} A description list, not a stack of divs: the label and the number are a pair, and dt/dd is the only markup that says so. The CSS is class-based, so the swap is free. {% endcomment %}
{% for row in page_data %}{% if row.scalar %}
{{ row.label }}
{{ row.value|default_if_none:"—" }}
{% endif %}{% endfor %}
{% for row in page_data %}{% if not row.scalar %}

{{ row.label }}

{% if row.value.items %}
{% for k, v in row.value.items %}
{{ k }}
{{ v }}
{% endfor %}
{% else %} {% endif %}
{% endif %}{% endfor %} {% else %}

{% translate "This page returned no data." %}

{% blocktranslate trimmed with slug=page.get_slug %} Return a dict from get_context(), or add a template at vantage/pages/{{ slug }}.html. {% endblocktranslate %}

{% endif %} {% endblock %}