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
43 lines
1.1 KiB
HTML
{% extends 'base.html' %}
|
|
{% load static %}
|
|
|
|
{% block title %}ABAC Home{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<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 %}">
|
|
<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">
|
|
<i class="bi bi-download"></i> Download
|
|
</a>
|
|
</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 %}
|
|
|