secure-files

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

index.mustache (963B)


      1 <!DOCTYPE html>
      2 <html>
      3 	<head>
      4 	</head>
      5 	<body>
      6 		<div>
      7 			<form method="post" enctype="multipart/form-data">
      8 				<input type="file" name="file" />
      9 				<input type="submit" />
     10 			</form>
     11 		</div>
     12 
     13 		<table class="table table-striped table-sm">
     14 			<thead>
     15 				<tr>
     16 					<th scope="col">File</th>
     17 					<th scope="col">Content-type</th>
     18 					<th scope="col">Status</th>
     19 					<th scope="col">Downloader IP address</th>
     20 				</tr>
     21 			</thead>
     22 			<tbody>
     23 {{#files}}
     24 				<tr>
     25 					<td>
     26 						{{#downloaded}}{{name}}{{/downloaded}}
     27 						{{^downloaded}}<a href="/download/{{id}}">{{name}}</a>{{/downloaded}}
     28 					</td>
     29 					<td>{{contentType}}</td>
     30 					<td>
     31 						{{#downloaded}}Downloaded{{/downloaded}}
     32 					</td>
     33 					<td>{{remoteAddr}}</td>
     34 					<td>
     35 						<form method="post">
     36 							<input type="hidden" name="delete" value="{{id}}">
     37 							<input type="submit" value="Delete" />
     38 						</form>
     39 					</td>
     40 				</tr>
     41 {{/files}}
     42 			</tbody>
     43 		</table>
     44 	</body>
     45 </html>