aboutsummaryrefslogtreecommitdiff
path: root/templates/fs.html
blob: a44d78f441b53a2e1229120696a4c081908679dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{template "layout.html" .}}
{{define "title"}} {{.Title}} {{end}}
{{define "content"}}
<div class="panel">
  <div class="panel-block">
      <div class="columns file-row is-gapless is-mobile">
          <div id="path" class="container-fluid">
              <small>{{range .Data.Page.History}}<a href="/fs?path={{.UrlEncodedPath}}" >{{.Name}}/</a>{{end}}</small>
          </div>
      </div>
  </div>
  {{range .Data.Page.Files}}
  <div class="panel-block">
      <div class="columns wide-column is-mono is-gapless is-mobile">
          <div class="column">
              {{if $.Data.ShowMode}}{{.Info.Mode}}&emsp;{{end}}
              {{if $.Data.ShowOwner}}{{.Info.Sys.Gid}}:{{.Info.Sys.Uid}}&emsp;{{end}}
              {{if .Info.IsDir}}
              <a href="/?path={{.UrlEncodedPath}}">{{.Info.Name}}/</a>
              {{else}}
              {{.Info.Name}}
              {{end}}
          </div>
          <div class="column  has-text-right">{{.Info.Size}} B</div>
      </div>
  </div>
  {{end}}
</div>
{{end}}