bunch of API changes
This commit is contained in:
@@ -52,17 +52,17 @@
|
||||
{{end}}
|
||||
</td>
|
||||
{{end}}
|
||||
{{if or (ne $field.Description "") (eq $field.Separator true)}}
|
||||
<tr class="form">
|
||||
<td colspan="2">
|
||||
{{$field.Description}}
|
||||
{{if eq $field.Separator true}}
|
||||
<hr/>
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tr>
|
||||
{{if or (ne $field.Description "") (eq $field.Separator true)}}
|
||||
<tr class="form">
|
||||
<td colspan="2">
|
||||
{{$field.Description}}
|
||||
{{if eq $field.Separator true}}
|
||||
<hr/>
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
{{end}}
|
||||
<tr class="form">
|
||||
{{if eq .BackLink ""}}
|
||||
|
@@ -1,10 +0,0 @@
|
||||
{{define "tpl_file_button"}}
|
||||
<template id="tpl_file_button">
|
||||
<a class="file_button" target="_blank">
|
||||
<img src="/api/file/xWwGvj9f/thumbnail?width=80&height=80" alt="24000.jpg" />
|
||||
<span style="color: var(--highlight_color);">24000.jpg</span>
|
||||
<br/>
|
||||
2020-01-20 10:06:56
|
||||
</a>
|
||||
</template>
|
||||
{{end}}
|
@@ -18,3 +18,8 @@ pixeldrain also supports previews for images, videos, audio, PDFs and much more.
|
||||
<meta property="og:image" content="/res/img/pixeldrain_big.png" />
|
||||
<meta property="og:image:type" content="image/png" />
|
||||
{{end}}
|
||||
{{define "vue"}}{{if debugMode}}
|
||||
<script src="/res/script/vue.js"></script>
|
||||
{{else}}
|
||||
<script src="/res/script/vue.min.js"></script>
|
||||
{{end}}{{end}}
|
||||
|
@@ -4,8 +4,8 @@
|
||||
<a href="/">Home</a>
|
||||
<hr />
|
||||
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
|
||||
<a href="/user/filemanager?files">My Files</a>
|
||||
<a href="/user/filemanager?lists">My Lists</a>
|
||||
<a href="/user/filemanager#files">My Files</a>
|
||||
<a href="/user/filemanager#lists">My Lists</a>
|
||||
<a href="/logout">Log out</a>
|
||||
{{else}}
|
||||
<a href="/login">Login</a>
|
||||
|
Reference in New Issue
Block a user