Initial commit
This commit is contained in:
23
app/templates/media.html
Normal file
23
app/templates/media.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<tbody id="mediaTableBody">
|
||||
{% for file in files %}
|
||||
<tr>
|
||||
<td style="width: 50px;">
|
||||
{% if file.type == 'Icon' or file.type == 'Hintergrund' or file.type == 'Logo' %}
|
||||
<img src="/static/uploads/{{ file.name }}" style="max-height: 30px;">
|
||||
{% else %}
|
||||
<i class="fas fa-file"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ file.name }}</td>
|
||||
<td>{{ file.size }}</td>
|
||||
<td>{{ file.type }}</td>
|
||||
<td>
|
||||
<a href="/admin/delete_media/{{ file.name }}" class="button is-danger is-small" onclick="return confirm('Sicher?')">Löschen</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5" class="has-text-centered">Keine Dateien vorhanden.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
Reference in New Issue
Block a user