You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB
HTML

1 year ago
{% extends 'base.html' %}
1 year ago
{% load static %}
{% block title %}ABAC Home{% endblock %}
1 year ago
{% block content %}
1 year ago
<div class="container mt-3">
<table class="table">
<thead>
<tr>
<th scope="col">File Name</th>
<th scope="col">Owner</th>
<th scope="col">Created At</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{% for file in files %}
<tr data-url="{% url 'abac:file_detail' file_id=file.id %}">
1 year ago
<td>{{ file.name }}</td>
<td>{{ file.owner.username }}</td>
<td>{{ file.created_at|date:"F d, Y H:i" }}</td>
<td>
<a href="{% url 'abac:download_file' file.id %}" class="btn btn-outline-primary btn-sm">
1 year ago
<i class="bi bi-download"></i> Download
</a>
1 year ago
</td>
</tr>
{% empty %}
<tr>
<td colspan="4" class="text-center">No files have been uploaded yet.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script src="{% static 'abac/main.js' %}"></script>
{% endblock %}