make updates
This commit is contained in:
@@ -4,16 +4,19 @@
|
||||
<title>{{.Name}}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="https://use.fontawesome.com/ede56571a0.js"></script>
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/_filemanagerinternal/css/styles.css">
|
||||
<style>
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>
|
||||
{{range $url, $name := .BreadcrumbMap}}<a href="{{$url}}">{{$name}}</a>{{if ne $url "/"}}/{{end}}{{end}}
|
||||
</h1>
|
||||
<div class="container">
|
||||
<h1>
|
||||
{{range $url, $name := .BreadcrumbMap}}{{if eq $url "/"}}<a href="{{$url}}">Home</a>{{end}}{{if ne $url "/"}}<i>></i><a href="{{$url}}">{{$name}}</a>{{end}}{{end}}
|
||||
</h1>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
{{ template "content" .Data }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{ define "content" }}
|
||||
<div class="meta">
|
||||
<div id="summary">
|
||||
<div id="summary" class="container">
|
||||
<span class="meta-item"><b>{{.NumDirs}}</b> director{{if eq 1 .NumDirs}}y{{else}}ies{{end}}</span>
|
||||
<span class="meta-item"><b>{{.NumFiles}}</b> file{{if ne 1 .NumFiles}}s{{end}}</span>
|
||||
{{- if ne 0 .ItemsLimitedTo}}
|
||||
@@ -8,8 +8,10 @@
|
||||
{{- end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="listing">
|
||||
<table aria-describedby="summary">
|
||||
<table class="container" aria-describedby="summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@@ -46,7 +48,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<a href="..">
|
||||
<span class="goup">Go up</span>
|
||||
<i class="fa fa-level-up fa-2x" aria-hidden="true"></i> <span class="goup">Go up</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>—</td>
|
||||
@@ -58,9 +60,9 @@
|
||||
<td>
|
||||
<a href="{{.URL}}">
|
||||
{{- if .IsDir}}
|
||||
<i class="fa fa-folder" aria-hidden="true"></i>
|
||||
<i class="fa fa-folder fa-2x" aria-hidden="true"></i>
|
||||
{{- else}}
|
||||
<i class="fa fa-file-text-o" aria-hidden="true"></i>
|
||||
<i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i>
|
||||
{{- end}}
|
||||
<span class="name">{{.Name}}</span>
|
||||
</a>
|
||||
|
||||
18
assets/templates/single.tmpl
Normal file
18
assets/templates/single.tmpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ define "content" }}
|
||||
|
||||
<main class="container">
|
||||
|
||||
{{ if eq .Type "image" }}
|
||||
<img src="{{.Base64}}">
|
||||
{{ else if eq .Type "audio" }}
|
||||
<audio src="{{.Base64}}">
|
||||
</audio>
|
||||
{{ else if eq .Type "video" }}
|
||||
|
||||
{{ else}}
|
||||
<pre>{{ .Content }}</pre>
|
||||
{{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user