{% extends "base.html" %} {% block content %}

{{ _(settings.project_name) }}

{% if models %} {{ _("{count} model registered", count=models|length) if models|length == 1 else _("{count} models registered", count=models|length) }} · {{ dialect }} {% else %} {{ _("Nothing registered yet") }} {% endif %}

{% if issues %} {# Configuration problems belong on the first page someone opens, not in a log they will not read. #}
{{ _("Configuration needs attention") }}
{% endif %} {% if models %}
{% for model in models %} {{ _(model.group) }} {{ model.count }} {{ _(model.title) }} {% endfor %}
{% if signups %} {# Drawn by the server, not by a charting library. Bars are elements with a height, so the chart is in the first paint, works with script disabled, inherits the theme's own colours, and costs nothing to download. #}

{{ _("New accounts") }}

{{ _("{count} in the last {days} days", count=signups.total, days=signups.bars|length) }}

{% if signups_url %} {{ _("View all") }} {{ ff_icon("arrow-right", size=14) }} {% endif %}
{# `role="img"` with a label, because the bars mean nothing read one by one. The table below carries the same numbers for anyone who wants them exactly, and is what a screen reader is offered. #} {% for bar in signups.bars %} {% endfor %}
{{ _("New accounts") }}
{{ _("Date") }}{{ _("Count") }}
{{ bar.iso }}{{ bar.count }}
{% endif %} {% else %}
{{ _("No models are registered") }}

Register one with @admin.register(Model), then make sure the module is imported — see fort.autodiscover(...) and fort.include_admin(...).

{% endif %} {% endblock %}