42 lines
1.4 KiB
Cheetah
42 lines
1.4 KiB
Cheetah
{{define "body"}}
|
|
<h1>MegaUploader - {{.Share.Name}}</h1>
|
|
|
|
<div>Carica un file su {{.Share.Name}}
|
|
{{if .ViewURL}}(<a href="{{.ViewURL}}">Guarda cosa c'è già</a>){{end}}
|
|
</div>
|
|
<div class="share-description">
|
|
{{.Share.Description}}
|
|
</div>
|
|
<div>Ricorda:
|
|
<ul>
|
|
<li>{{if ne .Share.SizeLimit 0}}
|
|
Max {{.Share.SizeLimit.HR}}
|
|
{{end}}
|
|
</li>
|
|
{{if ne (len .Share.Extensions) 0}}
|
|
<li>Solo file di tipo
|
|
{{range .Share.Extensions}}
|
|
<tt>{{.}}</tt>,
|
|
{{end}}
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
<pre id="responses"></pre>
|
|
<form id="uploadForm" class="dropzone" method="POST" action="{{.Prefix}}/api/upload/{{.Share.Name}}"
|
|
enctype="multipart/form-data"> <noscript>
|
|
<input type="file" name="file" />
|
|
</noscript>
|
|
</form>
|
|
|
|
<!-- TODO: area per trascinare file -->
|
|
{{end}}
|
|
|
|
{{define "scripts"}}
|
|
<script type="text/javascript" src="{{.Prefix}}/static/dropzone/dropzone.min.js"></script>
|
|
<script type="text/javascript" src="{{.Prefix}}/static/upload.js"> </script>
|
|
{{end}}
|
|
{{define "styles"}}
|
|
<link href="{{.Prefix}}/static/dropzone/dropzone.min.css" rel="stylesheet" />
|
|
<link href="{{.Prefix}}/static/style.css" rel="stylesheet" />
|
|
{{end}}
|