From 8db3624694d936dadc0ad5f5a8ed5a3868149947 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Fri, 5 Feb 2016 23:51:45 +0100 Subject: [PATCH] Adding way to see all LPs, LTs and EPs from an author Also smaller changes to the URL schemes, and a small change in the footer --- gserver/main.go | 13 ++++--- gserver/templates/aeps.html | 43 +++++++++++++++++++++++ gserver/templates/alps.html | 40 ++++++++++++++++++++++ gserver/templates/alts.html | 40 ++++++++++++++++++++++ gserver/templates/at.html | 20 +++++------ gserver/templates/episode.html | 4 +-- gserver/templates/footer.html | 2 +- gserver/templates/header.html | 6 ++-- gserver/templates/index.html | 8 ++--- gserver/templates/lp.html | 2 +- gserver/templates/lt.html | 2 +- gserver/webapp.go | 62 ++++++++++++++++++++++++++++++++++ 12 files changed, 216 insertions(+), 26 deletions(-) create mode 100644 gserver/templates/aeps.html create mode 100644 gserver/templates/alps.html create mode 100644 gserver/templates/alts.html diff --git a/gserver/main.go b/gserver/main.go index 34e6985..c5a83d0 100644 --- a/gserver/main.go +++ b/gserver/main.go @@ -29,11 +29,16 @@ func initRouter() *gin.Engine { // Web UI router.GET("/", GetIndex) - router.GET("/lets-play/:lslug/*eslug", GetLEpisode) + router.GET("/lets-play/:lslug/:eslug", GetLEpisode) router.GET("/lets-play/:lslug", GetLEpisode) - router.GET("/lets-play/", GetLps) - router.GET("/testet/*tslug", GetLt) - router.GET("/zeige/*aslug", GetAt) + router.GET("/lets-play", GetLps) + router.GET("/testet", GetLt) + router.GET("/testet/:tslug", GetLt) + router.GET("/zeige", GetAt) + router.GET("/zeige/:aslug", GetAt) + router.GET("/zeige/:aslug/lets-play", GetAtLps) + router.GET("/zeige/:aslug/testet", GetAtLts) + router.GET("/zeige/:aslug/episoden", GetAtEps) // API diff --git a/gserver/templates/aeps.html b/gserver/templates/aeps.html new file mode 100644 index 0000000..0e4d172 --- /dev/null +++ b/gserver/templates/aeps.html @@ -0,0 +1,43 @@ +{{ template "header.html" . }} +
+
+

{{ .title }}

+ + +
+
+{{ template "footer.html" . }} diff --git a/gserver/templates/alps.html b/gserver/templates/alps.html new file mode 100644 index 0000000..e273800 --- /dev/null +++ b/gserver/templates/alps.html @@ -0,0 +1,40 @@ +{{ template "header.html" . }} +
+
+

{{ .title }}

+ + +
+
+{{ template "footer.html" . }} diff --git a/gserver/templates/alts.html b/gserver/templates/alts.html new file mode 100644 index 0000000..f326663 --- /dev/null +++ b/gserver/templates/alts.html @@ -0,0 +1,40 @@ +{{ template "header.html" . }} +
+
+

{{ .title }}

+ + +
+
+{{ template "footer.html" . }} diff --git a/gserver/templates/at.html b/gserver/templates/at.html index f9d4f2e..6990e77 100644 --- a/gserver/templates/at.html +++ b/gserver/templates/at.html @@ -23,28 +23,28 @@ {{ if .data.LPs }} -

Aktuelle Let's Plays

+

Aktuelle Let's Plays mehr

{{ end }} {{ if .data.EPs }} -

Aktuelle Episoden

+

Aktuelle Episoden mehr

{{ end }} {{ if .data.LTs }} -

Aktuelle Let's Tests

+

Aktuelle Let's Tests mehr

diff --git a/gserver/templates/episode.html b/gserver/templates/episode.html index 2aba8a7..5186e48 100644 --- a/gserver/templates/episode.html +++ b/gserver/templates/episode.html @@ -9,8 +9,8 @@
-
-
+
+
diff --git a/gserver/templates/footer.html b/gserver/templates/footer.html index 7bf8be3..ecd1cb6 100644 --- a/gserver/templates/footer.html +++ b/gserver/templates/footer.html @@ -10,7 +10,7 @@
-

Gronkh.DE in Kodi

+

Gronkh.de in Kodi

Copyright © 2010 - 2015
gronkh.de — Fair use

diff --git a/gserver/templates/header.html b/gserver/templates/header.html index 763271c..8a2f485 100644 --- a/gserver/templates/header.html +++ b/gserver/templates/header.html @@ -47,9 +47,9 @@ diff --git a/gserver/templates/index.html b/gserver/templates/index.html index ffa9e90..9c4a9aa 100644 --- a/gserver/templates/index.html +++ b/gserver/templates/index.html @@ -12,7 +12,7 @@