diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 3 | ||||
| -rw-r--r-- | templates/upload.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index 1b0ab6c..8f30aad 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,5 +1,6 @@ {{define "base"}}
{{ $playing := .Playing }}
+{{ $config := .Config }}
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
@@ -37,7 +38,7 @@ </main>
<footer>
<p><a href="https://github.com/prologic/tube">Tube</a> is CopyRight © 2020 <a href="https://github.com/prologic">James Mills / prologic</a>. All Rights Reserved.</p>
- <p>All Content herein Public Domain and User Contributed.</p>
+ {{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}
</footer>
</body>
{{ template "scripts" . }}
diff --git a/templates/upload.html b/templates/upload.html index 2967416..54c2ccd 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -36,6 +36,6 @@ </div> {{end}} {{define "scripts"}} - <script>window['MAX_UPLOAD_SIZE'] = '{{.MAX_UPLOAD_SIZE}}';</script> + <script>window['MAX_UPLOAD_SIZE'] = '{{.Config.Server.MaxUploadSize}}';</script> <script type="application/javascript" src="/static/upload.js"></script> {{end}} |
