2019-02-24 08:25:39 +00:00
|
|
|
{{ $path := .Path }}
|
|
|
|
{{ $prev := .Previous }}
|
|
|
|
{{ $prefix := .Prefix }}
|
|
|
|
{{ $singleprefix := .SinglePrefix }}
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>{{ $path }} | PiNas</title>
|
|
|
|
<link rel="stylesheet" href="/assets/styles.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main>
|
|
|
|
<div>
|
2019-02-24 09:02:03 +00:00
|
|
|
<h1>{{$prefix}}/{{$path}}</h1>
|
2019-02-24 08:25:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2019-02-24 09:02:03 +00:00
|
|
|
<p class="directory"><a href="/{{$prefix}}/{{$prev}}">..</a></p>
|
2019-02-24 08:25:39 +00:00
|
|
|
{{range $file := .Files}}
|
|
|
|
{{ if $file.IsDir }}
|
2019-02-24 09:02:03 +00:00
|
|
|
<p class="directory"><a href="/{{$prefix}}/{{$path}}/{{$file.Name}}">{{$file.Name}}/</a></p>
|
2019-02-24 08:25:39 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if not $file.IsDir }}
|
2019-02-24 09:02:03 +00:00
|
|
|
<p class="file"><a href="/{{$singleprefix}}/{{$path}}/{{$file.Name}}">{{$file.Name}}</a></p>
|
2019-02-24 08:25:39 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|