{% macro upload_card(title, subtitle, type, accept, filename, file) %}
{{ title }}
{{ subtitle }}
{% if file %}
{{ file }} {% if project.project_config.uploaded.get(type, False) %} Uploaded {% else %} Generated {% endif %}

Last updated: {{ project.get_mtime(type) }}

{% else %}
No file uploaded
{% endif %}
{% if filename %}

The uploaded file will be automatically renamed to {{ filename }}.

{% endif %}
{% endmacro %}

Other Files

Upload and download the required project files.

{{ upload_card(title='PORTALCONFIG', subtitle='XML portal configuration', type='portalconfig', accept='.xml', filename='portalconfig.xml', file=project.project_config.portalconfig) }} {{ upload_card(title='README', subtitle='Project documentation', type='readme', accept='.md,text/markdown', filename='README.md', file=project.project_config.readme) }} {{ upload_card(title='XSLT', subtitle='XSLT configuration', type='xslt', accept='.xslt', filename=None, file=project.project_config.xslt) }}
{% from "macros.html" import next_tab_row with context %} {{ next_tab_row(prev_tab='#tab-set-collections', next_tab='#tab-check-metadata') }}