upload metadata table on upload page
This commit is contained in:
@@ -197,3 +197,28 @@ body.dragging::after {
|
|||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.upload-metadata {
|
||||||
|
width: 100%;
|
||||||
|
table-layout: fixed;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-metadata th,
|
||||||
|
.upload-metadata td {
|
||||||
|
padding: 8px 0;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-metadata th:first-child {
|
||||||
|
width: 20%;
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-metadata th[scope="row"] {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,6 +23,64 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>upload metadata</summary>
|
||||||
|
<table class="upload-metadata">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">key</th>
|
||||||
|
<th scope="col">value</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">id</th>
|
||||||
|
<td>{{.ID}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">type</th>
|
||||||
|
<td>{{.Type}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">filename</th>
|
||||||
|
<td>{{.Filename}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">mimetype</th>
|
||||||
|
<td>{{.MIMEType}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">size</th>
|
||||||
|
<td>{{.Size}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">sha256</th>
|
||||||
|
<td>{{.SHA256}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">created at</th>
|
||||||
|
<td>{{.CreatedAt}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">expires at</th>
|
||||||
|
<td>{{if .ExpiresAt}}{{.ExpiresAt}}{{else}}indefinite{{end}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">last accessed at</th>
|
||||||
|
<td>{{.LastAccessedAt}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">file extension</th>
|
||||||
|
<td>{{.FileExtension}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">delete token</th>
|
||||||
|
<td>{{.DeleteToken}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</details>
|
||||||
|
|
||||||
<div class="upload-links">
|
<div class="upload-links">
|
||||||
<a href="/{{.ID}}">view raw upload</a>
|
<a href="/{{.ID}}">view raw upload</a>
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Reference in New Issue
Block a user