Move footer to separate template
This commit is contained in:
0
static/style/footer.css
Normal file
0
static/style/footer.css
Normal file
11
templates/footer.html
Normal file
11
templates/footer.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{{define "footer"}}
|
||||||
|
<div class="footer">
|
||||||
|
<div class="build-id">
|
||||||
|
Build ID: <a href="https://github.com/cwpearson/ytdlp-site/compare/{{.build_id}}..master">{{.build_id}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{define "footer-css"}}
|
||||||
|
<link rel="stylesheet" href="/static/style/footer.css">
|
||||||
|
{{end}}
|
@@ -6,6 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{.original.Title}}</title>
|
<title>{{.original.Title}}</title>
|
||||||
<link rel="stylesheet" href="/static/style/video.css">
|
<link rel="stylesheet" href="/static/style/video.css">
|
||||||
|
{{template "footer-css" .}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -38,14 +39,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<div class="footer">
|
|
||||||
<div class="build-id">
|
|
||||||
Build ID: <a href="https://github.com/cwpearson/ytdlp-site/compare/{{.build_id}}..master">{{.build_id}}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script src="/static/script/save-media-progress.js"></script>
|
<script src="/static/script/save-media-progress.js"></script>
|
||||||
|
|
||||||
|
{{template "footer" .}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@@ -7,10 +7,9 @@
|
|||||||
<meta http-equiv="refresh" content="10">
|
<meta http-equiv="refresh" content="10">
|
||||||
<title>Downloaded Videos</title>
|
<title>Downloaded Videos</title>
|
||||||
<link rel="stylesheet" href="/static/style/videos.css">
|
<link rel="stylesheet" href="/static/style/videos.css">
|
||||||
|
{{template "footer-css" .}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Downloaded Videos</h1>
|
<h1>Downloaded Videos</h1>
|
||||||
|
|
||||||
@@ -56,10 +55,7 @@
|
|||||||
<p><a href="/download">Download New Video</a></p>
|
<p><a href="/download">Download New Video</a></p>
|
||||||
<p><a href="/logout">Logout</a></p>
|
<p><a href="/logout">Logout</a></p>
|
||||||
|
|
||||||
<div class="footer">
|
{{template "footer" .}}
|
||||||
<div class="build-id">Build ID: {{.build_id}}</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user