{# The Export tab: the calculation's own files (from src/downloads.py) and the plots and fields this page can generate (filled by exports.js from its registry, so a new format needs no template edit), as one flowing list - both are the same label/button-group row, so a Calculation/Plots & Fields split was a distinction without a difference. #} {# Export #}
{# Built from src/downloads.py, so which files a code writes is never spelled out here #} {% for group in downloads %}

{{ group.label }} {% for file in group.files %} {% set file_url = url_for('download', calculation_id=id, filename=file.filename) %} {% if file.binary %} {% else %} {% endif %} {% endfor %}

{% endfor %} {# The rest is filled by exports.js from its registry - one entry there is one button here and one right-click menu item, so a new export format needs no template edit #}