You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
988 B
47 lines
988 B
{{ define "body" }}
|
|
|
|
<h2>Upload Asset</h2>
|
|
|
|
<p>
|
|
If the given ID is the same as an existing asset's ID, then that asset will be
|
|
overwritten.
|
|
</p>
|
|
|
|
<form action="{{ BlogURL "assets/" }}" method="POST" enctype="multipart/form-data">
|
|
<div class="row">
|
|
<div class="four columns">
|
|
<input type="text" placeholder="Unique ID" name="id" />
|
|
</div>
|
|
<div class="four columns">
|
|
<input type="file" name="file" /><br/>
|
|
</div>
|
|
<div class="four columns">
|
|
<input type="submit" value="Upload" />
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<h2>Existing Assets</h2>
|
|
|
|
<table>
|
|
|
|
{{ range .Payload.IDs }}
|
|
<tr>
|
|
<td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td>
|
|
<td>
|
|
<form
|
|
action="{{ AssetURL . }}?method=delete"
|
|
method="POST"
|
|
style="margin-bottom: 0;"
|
|
>
|
|
<input type="submit" value="Delete" />
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
|
|
</table>
|
|
|
|
{{ end }}
|
|
|
|
{{ template "base.html" . }}
|
|
|