50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<link rel="stylesheet" href="/style/sakura.css">
|
|
<title>{info.filename}</title>
|
|
</head>
|
|
<body>
|
|
<h1>{info.filename}</h1>
|
|
{#if !info.filename is '/'}
|
|
<a href="{info.directUrl}/..">back</a>
|
|
<span style="float:right;">
|
|
<a href="{info.viewUrl}/">viewer</a>
|
|
</span>
|
|
{/if}
|
|
<hr />
|
|
<table style="table-layout: fixed; text-align: center">
|
|
{#each info.content}
|
|
{#if count.mod(3) == 1}
|
|
<tr>
|
|
{/if}
|
|
<td>
|
|
{#if it.thumbnailUrl}
|
|
{#if it.type is 'file'}
|
|
{#if it.viewUrl}
|
|
<a href="{it.viewUrl}">
|
|
{#else}
|
|
<a href="{it.publicApiUrl}">
|
|
{/if}
|
|
{#else}
|
|
<a href="{it.directUrl}">
|
|
{/if}<img src="{it.thumbnailUrl}" loading="lazy" /></a><br />
|
|
{/if}
|
|
{#if it.type is 'file'}
|
|
<a href="{it.publicApiUrl}">
|
|
{#else}
|
|
<a href="{it.directUrl}">
|
|
{/if}{it.filename}</a>
|
|
</td>
|
|
{#if count.mod(3) == 0}
|
|
</tr>
|
|
{/if}
|
|
{/each}
|
|
</table>
|
|
<hr />
|
|
</body>
|
|
</html>
|
|
|