summaryrefslogtreecommitdiff
path: root/app/rice-box.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/rice-box.go')
-rw-r--r--app/rice-box.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/rice-box.go b/app/rice-box.go
index 68b6491..4920996 100644
--- a/app/rice-box.go
+++ b/app/rice-box.go
@@ -14,7 +14,7 @@ func init() {
Filename: "base.html",
FileModTime: time.Unix(1623157014, 0),
- Content: string("{{define \"base\"}}\r\n{{ $playing := .Playing }}\r\n{{ $config := .Config }}\r\n<!DOCTYPE html>\r\n<html lang=\"en\" prefix=\"og: https://ogp.me/ns#\">\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/static/favicon.ico\">\r\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/theme.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/upload.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/import.css\">\r\n\r\n {{if $playing.ID}}\r\n <meta property=\"og:title\" content=\"{{$playing.Title}}\"/>\r\n <meta property=\"og:type\" content=\"video.other\"/>\r\n <meta property=\"og:image\" content=\"/t/{{ $playing.ID}}\"/>\r\n <meta property=\"og:video\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:secure_url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:description\" content=\"{{$playing.Description}}\"/>\r\n <meta property=\"og:site_name\" content=\"Tube\"/>\r\n <meta property=\"og:url\" content=\"/v/{{ $playing.ID }}\"/>\r\n {{end}}\r\n\r\n {{ template \"stylesheets\" . }}\r\n {{ template \"css\" . }}\r\n <title>Tube</title>\r\n </head>\r\n<body>\r\n <nav>\r\n <a href=\"/\">Tube</a>\r\n <a class=\"centered\" style=\"text-indent: 0;\" href=\"/upload\">Upload</a>\r\n </nav>\r\n <main>\r\n {{template \"content\" .}}\r\n </main>\r\n <footer>\r\n <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>\r\n {{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}\r\n </footer>\r\n</body>\r\n{{ template \"scripts\" . }}\r\n</html>\r\n{{end}}\r\n{{ define \"css\" }}{{ end }}\r\n{{ define \"scripts\" }}{{ end }}\r\n{{ define \"stylesheets\" }}{{ end }}\r\n"),
+ Content: string("{{define \"base\"}}\r\n{{ $playing := .Playing }}\r\n{{ $config := .Config }}\r\n<!DOCTYPE html>\r\n<html lang=\"en\" prefix=\"og: https://ogp.me/ns#\">\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/static/favicon.ico\">\r\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/theme.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/upload.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/import.css\">\r\n\r\n {{if $playing.ID}}\r\n <meta property=\"og:title\" content=\"{{$playing.Title}}\"/>\r\n <meta property=\"og:type\" content=\"video.other\"/>\r\n <meta property=\"og:image\" content=\"/t/{{ $playing.ID}}\"/>\r\n <meta property=\"og:video\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:secure_url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:description\" content=\"{{$playing.Description}}\"/>\r\n <meta property=\"og:site_name\" content=\"Tube\"/>\r\n <meta property=\"og:url\" content=\"/v/{{ $playing.ID }}\"/>\r\n {{end}}\r\n\r\n {{ template \"stylesheets\" . }}\r\n {{ template \"css\" . }}\r\n <title>Tube</title>\r\n </head>\r\n<body>\r\n <nav>\r\n <a href=\"/\">Tube</a>\r\n <a class=\"centered\" style=\"text-indent: 0;\" href=\"/upload\">Upload</a>\r\n </nav>\r\n <main>\r\n {{template \"content\" .}}\r\n </main>\r\n <footer>\r\n <p><a href=\"https://git.mills.io/prologic/tube\">Tube</a> is CopyRight © 2020 <a href=\"https://git.mills.io/prologic\">James Mills / prologic</a>. All Rights Reserved.</p>\r\n {{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}\r\n </footer>\r\n</body>\r\n{{ template \"scripts\" . }}\r\n</html>\r\n{{end}}\r\n{{ define \"css\" }}{{ end }}\r\n{{ define \"scripts\" }}{{ end }}\r\n{{ define \"stylesheets\" }}{{ end }}\r\n"),
}
file3 := &embedded.EmbeddedFile{
Filename: "import.html",