{% extends "packages/package_base.html" %} {% block title %} {{ _("Releases - %(title)s", title=package.title) }} {% endblock %} {% block content %} {% if package.check_perm(current_user, "MAKE_RELEASE") %}
{% if package.update_config %} {{ _("Update settings") }} {% elif package.repo %} {{ _("Set up automatic releases") }} {% endif %} {{ _("Bulk update") }} {{ _("Create") }}
{% endif %}{% set release_size = ((package.releases | sum(attribute="file_size_bytes")) / 1048576) | round %} {% set screenshot_size = ((package.screenshots | sum(attribute="file_size_bytes")) / 1048576) | round %} {{ _("Total storage usage is %(total_size)d MB (releases %(release_size)d MB, screenshots %(screenshot_size)d MB)", release_size=release_size, screenshot_size=screenshot_size, total_size=release_size + screenshot_size) }}
{% endblock %}