{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% block body %}
{% block navlinks %}
{% endblock %}
{% block details_nav %}
{% include 'admin/_details_nav.html' %}
{% endblock %}
{% block details_search %}
{% endblock %}
{% block details_table %}
{% macro detail_row(c, name) %}
{% if c == 'recent_download_count' %}Downloads (90d){% else %}{{ name }}{% endif %} |
{% if c == 'arch_breakdown' %}
{% if arch_breakdown %}
{% for code, count, pct in arch_breakdown %}
| {{ code }} |
|
{{ "{:,}".format(count) }} ({{ pct | round | int }}%)
|
{% endfor %}
{% else %}
No NAS downloads in the last 90 days
{% endif %}
{% elif c == 'firmware_breakdown' %}
{% if firmware_breakdown %}
{% for label, count, pct in firmware_breakdown %}
| {{ label }} |
|
{{ "{:,}".format(count) }} ({{ pct | round | int }}%)
|
{% endfor %}
{% else %}
No NAS downloads in the last 90 days
{% endif %}
{% else %}
{{ get_value(model, c) }}
{% endif %}
|
{% endmacro %}
{% for title, cols in details_sections %}
| {{ title }} |
{% for c, name in cols %}
{% if loop.first %}{{ detail_row(c, name) }}{% endif %}
{% endfor %}
{% for c, name in cols %}
{% if not loop.first %}{{ detail_row(c, name) }}
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
{% block tail %}
{{ super() }}
{% endblock %}