From 6d1a924d53ac2b385a148d585aa89e2a7472b2bb Mon Sep 17 00:00:00 2001 From: Adphi Date: Sun, 4 Nov 2018 17:16:50 +0100 Subject: [PATCH] Added generic List Page --- static/index.html | 2 +- static/list.html | 175 ++++++++++++++++++++++++++++++++++++++++++++++ static/nav.html | 2 +- 3 files changed, 177 insertions(+), 2 deletions(-) create mode 100644 static/list.html diff --git a/static/index.html b/static/index.html index 264758f..82e09f2 100644 --- a/static/index.html +++ b/static/index.html @@ -147,7 +147,7 @@
{{ range $category, $movies := .Categories }}
-

{{ $category }}

+

{{ $category }}

diff --git a/static/list.html b/static/list.html new file mode 100644 index 0000000..6a0a77d --- /dev/null +++ b/static/list.html @@ -0,0 +1,175 @@ + + + + + YTSFlix {{ .Category}} + + + +{{template "navigation"}} +
+

{{ .Category }}

+
+
+
+ {{ range $title, $movie := .Movies }} + +
+ +
+
+
+ {{ $title }} +
+
+
+ {{ end }} +
+
+
+
+ + \ No newline at end of file diff --git a/static/nav.html b/static/nav.html index b4c0024..cfb0181 100644 --- a/static/nav.html +++ b/static/nav.html @@ -78,7 +78,7 @@ window.location = "/movies/" + search; } - +