From ca5969379ac4ef81f251fd9184d1196e34b1f3b5 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 28 Mar 2020 15:00:43 +1000 Subject: [PATCH] Set preload to metdata --- app/rice-box.go | 14 +++++++------- templates/index.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/rice-box.go b/app/rice-box.go index 03fa7e9..a603db4 100644 --- a/app/rice-box.go +++ b/app/rice-box.go @@ -23,13 +23,13 @@ func init() { } file4 := &embedded.EmbeddedFile{ Filename: "index.html", - FileModTime: time.Unix(1585341743, 0), + FileModTime: time.Unix(1585371597, 0), - Content: string("{{ define \"content\" }}\r\n{{ $playing := .Playing }}\r\n
\r\n {{ if $playing.ID }}\r\n \r\n

{{ $playing.Title }}

\r\n

{{ $playing.Views }} views • {{ $playing.Modified }}
{{ $playing.Size | bytes }}

\r\n

{{ $playing.Description }}

\r\n {{ else }}\r\n \r\n {{ end }}\r\n
\r\n
\r\n
\r\n \r\n
\r\n {{ range $m := .Playlist }}\r\n {{ if eq $m.ID $playing.ID }}\r\n \r\n {{ else }}\r\n \r\n {{ end }}\r\n \r\n
\r\n

{{ $m.Title }}

\r\n

{{ $m.Views }} views • {{ $m.Modified }}
{{ $m.Size | bytes }}

\r\n
\r\n
\r\n {{ end }}\r\n
\r\n{{end}}\r\n"), + Content: string("{{ define \"content\" }}\r\n{{ $playing := .Playing }}\r\n
\r\n {{ if $playing.ID }}\r\n \r\n

{{ $playing.Title }}

\r\n

{{ $playing.Views }} views • {{ $playing.Modified }}
{{ $playing.Size | bytes }}

\r\n

{{ $playing.Description }}

\r\n {{ else }}\r\n \r\n {{ end }}\r\n
\r\n
\r\n
\r\n \r\n
\r\n {{ range $m := .Playlist }}\r\n {{ if eq $m.ID $playing.ID }}\r\n \r\n {{ else }}\r\n \r\n {{ end }}\r\n \r\n
\r\n

{{ $m.Title }}

\r\n

{{ $m.Views }} views • {{ $m.Modified }}
{{ $m.Size | bytes }}

\r\n
\r\n
\r\n {{ end }}\r\n
\r\n{{end}}\r\n"), } file5 := &embedded.EmbeddedFile{ Filename: "upload.html", - FileModTime: time.Unix(1585341743, 0), + FileModTime: time.Unix(1585370960, 0), Content: string("{{define \"content\"}}\n
\n \n

Importing a video? Click here

\n
\n{{end}}\n{{define \"scripts\"}}\n \n{{end}}\n"), } @@ -37,7 +37,7 @@ func init() { // define dirs dir1 := &embedded.EmbeddedDir{ Filename: "", - DirModTime: time.Unix(1585355654, 0), + DirModTime: time.Unix(1585371597, 0), ChildFiles: []*embedded.EmbeddedFile{ file2, // "base.html" file3, // "import.html" @@ -53,7 +53,7 @@ func init() { // register embeddedBox embedded.RegisterEmbeddedBox(`../templates`, &embedded.EmbeddedBox{ Name: `../templates`, - Time: time.Unix(1585355654, 0), + Time: time.Unix(1585371597, 0), Dirs: map[string]*embedded.EmbeddedDir{ "": dir1, }, @@ -127,7 +127,7 @@ func init() { // define dirs dir6 := &embedded.EmbeddedDir{ Filename: "", - DirModTime: time.Unix(1585354927, 0), + DirModTime: time.Unix(1585371573, 0), ChildFiles: []*embedded.EmbeddedFile{ file7, // "close-icon.png" file8, // "defaulticon.jpg" @@ -148,7 +148,7 @@ func init() { // register embeddedBox embedded.RegisterEmbeddedBox(`../static`, &embedded.EmbeddedBox{ Name: `../static`, - Time: time.Unix(1585354927, 0), + Time: time.Unix(1585371573, 0), Dirs: map[string]*embedded.EmbeddedDir{ "": dir6, }, diff --git a/templates/index.html b/templates/index.html index f953414..aea20cb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ {{ $playing := .Playing }}
{{ if $playing.ID }} - +

{{ $playing.Title }}

{{ $playing.Views }} views • {{ $playing.Modified }}
{{ $playing.Size | bytes }}

{{ $playing.Description }}