{% extends "base.html" %} {% block content %}
{% include "partials/repo_heading.html" %} {% with repo_tab = "uploads" %} {% include "partials/repo_tabs.html" %} {% endwith %}
Repo uploads
Reset
{% if can_create_upload %} Upload files {% endif %}
{% if page.results | length == 0 %}

No uploads found.

{% else %}
{% for entry in page.results %} {% if entry.is_group %} {% set group = entry.group %}
{% with user_link_href = group.created_by_href, user_link_username = group.created_by_username, user_link_label = group.created_by_name, user_link_class = "text-decoration-none" %} {% include "partials/hover_card_user_link.html" %} {% endwith %} {{ group.created_at | humantime }}
{% for upload in group.members %} {% endfor %}
Filename Description Type Size Actions
{{ upload.filename }}
{{ upload.uuid }}
{{ upload.description }} {{ upload.content_type }} {{ upload.size_label }}
Download {% if upload.can_manage %} Edit {% if upload.delete_href %}
{% endif %} {% endif %}
{% else %} {% set upload = entry.upload %}
{{ upload.filename }} {{ upload.content_type }} {{ upload.size_label }}
{{ upload.description }}
{{ upload.uuid }}
{% with user_link_href = upload.created_by_href, user_link_username = upload.created_by_username, user_link_label = upload.created_by_name, user_link_class = "text-decoration-none small" %} {% include "partials/hover_card_user_link.html" %} {% endwith %} {{ upload.created_at | humantime }} Download {% if upload.can_manage %} Edit {% if upload.delete_href %}
{% endif %} {% endif %}
{% endif %} {% endfor %}
{% endif %}
{% with page=page, query=query, per_page_id="repo-uploads-per-page", per_page_form="repo-uploads-filter-form" %} {% include "partials/paging_footer.html" %} {% endwith %}
{% with modal_id="confirm-delete-upload", modal_title="Delete upload", modal_body='Delete ?', modal_confirm_text="Delete upload", modal_desc="This file upload is permanently deleted and cannot be restored." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endblock %} {% block scripts %} {% endblock %}