{% extends "layouts/base.html" %} {% block title %} Files in {{ release.short_display_name }} ~ ATR {% endblock title %} {% block description %} View the files in the {{ release.short_display_name }} release. {% endblock description %} {% block content %}
{# TODO: Use mappings.py #} {% if phase_key == "draft" %} ← Back to Compose {{ release.short_display_name }} ① COMPOSE → ② → ③ {% elif phase_key == "candidate" %} ← Back to Vote for {{ release.short_display_name }} ① → ② VOTE → ③ {% elif phase_key == "preview" %} ← Back to Finish {{ release.short_display_name }} ① → ② → ③ FINISH {% else %} ← Back to Releases {% endif %}
Project: {{ release.project.display_name }}
Label: {{ release.name }}
Created: {{ release.created.strftime("%Y-%m-%d %H:%M:%S") }}
Permissions | File path | Size | Modified |
---|---|---|---|
{{ format_permissions(stat.permissions) }} | {% if stat.is_file %} {% if phase_key == "draft" %} {% set file_url = as_url(routes.file.selected_path, project_name=release.project.name, version_name=release.version, file_path=stat.path) %} {% elif phase_key == "candidate" %} {% set file_url = as_url(routes.candidate.view_path, project_name=release.project.name, version_name=release.version, file_path=stat.path) %} {% elif phase_key == "preview" %} {% set file_url = as_url(routes.preview.view_path, project_name=release.project.name, version_name=release.version, file_path=stat.path) %} {% elif phase_key == "release" %} {% set file_url = as_url(routes.release.view_path, project_name=release.project.name, version_name=release.version, file_path=stat.path) %} {% else %} {# TODO: Should probably disable the link here #} {% set file_url = "#" %} {% endif %} {{ stat.path }} {% else %} {{ stat.path }}/ {% endif %} | {% if stat.is_file %} {{ format_file_size(stat.size) }} {% else %} - {% endif %} | {{ format_datetime(stat.modified) }} |