Files page: thumbnails + view + download (email access to finished work)
This commit is contained in:
@@ -27,7 +27,17 @@
|
||||
{% if files %}
|
||||
<ul class="file-list">
|
||||
{% for f in files %}
|
||||
<li><span class="file-name" title="{{ f.name }}">{{ f.name }}</span><span class="faint">{{ (f.size/1024)|round(1) }} KB</span></li>
|
||||
<li style="align-items:center;gap:12px">
|
||||
{% if f.img %}
|
||||
<img src="/files/raw/{{ f.name }}" alt="{{ f.name }}" style="width:56px;height:56px;object-fit:cover;border-radius:8px;border:1px solid var(--hairline,#e6e6e6)">
|
||||
{% else %}
|
||||
<span style="width:56px;height:56px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--hairline,#e6e6e6);border-radius:8px;color:#999;font-size:11px">file</span>
|
||||
{% endif %}
|
||||
<span class="file-name" title="{{ f.name }}" style="flex:1">{{ f.name }}</span>
|
||||
<span class="faint">{{ (f.size/1024)|round(1) }} KB</span>
|
||||
<a class="button button-utility" href="/files/raw/{{ f.name }}" target="_blank" title="View">View</a>
|
||||
<a class="button button-utility" href="/files/dl/{{ f.name }}" title="Download">Download ↓</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<p class="faint margin-top" style="font: var(--type-caption)">
|
||||
|
||||
Reference in New Issue
Block a user