{% extends 'layout.html' %} {% block title %}{{ header_version.displaynames['enu'].displayname }} Package - {{ super() }}{% endblock %} {% block content %}
{% set _icon = header_version.icons.get("256") or header_version.icons["72"] %} Icon

{{ header_version.displaynames['enu'].displayname }} v{{ header_version.version_string }} {% if not package.has_active_builds %} Archived {% endif %}

{% if selected_arch|default(None) %} {% endif %} {% if not package.has_active_builds %} {% endif %} {# Active downloads badge — only shown when package has meaningful recent downloads #} {% if package.download_counts %} {% set n = package.download_counts.recent_download_count %} {% if n >= 100000 %}

100k+ downloads in the last 90 days

{% elif n >= 50000 %}

50k+ downloads in the last 90 days

{% elif n >= 25000 %}

25k+ downloads in the last 90 days

{% elif n >= 10000 %}

10k+ downloads in the last 90 days

{% elif n >= 5000 %}

5k+ downloads in the last 90 days

{% elif n >= 2500 %}

2.5k+ downloads in the last 90 days

{% elif n >= 1000 %}

1k+ downloads in the last 90 days

{% endif %} {% endif %}

{{ descriptions.get(header_version.id, '') }}

{% for screenshot in package.screenshots %} Screenshot  {% endfor %}
{# When filtered, display_versions holds only versions with a matching build and version_build_groups holds only the matching builds per version; otherwise fall back to the full history. #} {% for version in (display_versions if display_versions is not none else package.versions)|reverse %} {% set build_groups = version_build_groups[version.id] if version_build_groups is not none else version.builds_per_dsm %}
Version {{ version.version_string | safe }}{% if version.report_url %} beta{% endif %}
{{ version.builds[0].changelog | safe }}
Date
{{ version.insert_date.replace(microsecond=0) }}
Architectures
{% for (dsm_version, builds) in build_groups.items() %} {% if dsm_version == '1' %} SRM {{ dsm_version }}.x: {% else %} DSM {{ dsm_version }}.x: {% endif %} {% for build in builds %} {% if build.active %} {% for arch in build.architectures %} {{ build.firmware_min.version }}{% if build.firmware_max %}-{{ build.firmware_max.version }}{% endif %} {{ arch.code }} {% endfor %} {% else %} {% for arch in build.architectures %} {{ build.firmware_min.version }}{% if build.firmware_max %}-{{ build.firmware_max.version }}{% endif %} {{ arch.code }} {% endfor %} {% endif %} {% endfor %}
{% endfor %}
{% endfor %}
{% endblock %} {% block script %} {% endblock %}