From 898fee21b8cc2d45fdedcd1f1a31762813211380 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Mon, 28 Sep 2015 21:35:37 +0200 Subject: [PATCH] Adding basic Microdata to templates --- gserver/main.go | 1 - gserver/templates/at.html | 30 +++++++++++++++--------------- gserver/templates/ats.html | 8 ++++---- gserver/templates/episode.html | 18 +++++++++++------- gserver/templates/index.html | 8 ++++---- gserver/templates/lp.html | 18 +++++++++--------- gserver/templates/lps.html | 8 ++++---- gserver/templates/lt.html | 16 ++++++++++------ gserver/templates/lts.html | 8 ++++---- 9 files changed, 61 insertions(+), 54 deletions(-) diff --git a/gserver/main.go b/gserver/main.go index 2f91923..0f5b457 100644 --- a/gserver/main.go +++ b/gserver/main.go @@ -53,7 +53,6 @@ func initRouter() *gin.Engine { v3.GET("/author/:aid/lets-plays", apiv3.GetAuthorLps) v3.GET("/authors/*aid", apiv3.GetAuthors) - //v3.GET("/test", apiv3.GetTests) v3.GET("/tests/*tid", apiv3.GetTests) v3.GET("/lets-play/:lid/episodes/*eid", apiv3.GetLpEpisodes) diff --git a/gserver/templates/at.html b/gserver/templates/at.html index dbb4011..3ab00df 100644 --- a/gserver/templates/at.html +++ b/gserver/templates/at.html @@ -1,34 +1,34 @@ {{ template "header.html" . }} -
-

{{ .data.AT.Name.String }}

+
+

{{ .data.AT.Name.String }}

- {{ .data.AT.Name.String }}'s Avatar + {{ .data.AT.Name.String }}'s Avatar

Aktuelle Let's Plays

Aktuelle Episoden

@@ -36,11 +36,11 @@

Aktuelle Let's Tests

diff --git a/gserver/templates/ats.html b/gserver/templates/ats.html index 9a282f1..efaf8ca 100644 --- a/gserver/templates/ats.html +++ b/gserver/templates/ats.html @@ -4,15 +4,15 @@

{{ .title }}

diff --git a/gserver/templates/episode.html b/gserver/templates/episode.html index 754e8e9..35cc150 100644 --- a/gserver/templates/episode.html +++ b/gserver/templates/episode.html @@ -1,13 +1,17 @@ {{ template "header.html" . }} -
+
-
{{ .data.LP.Name.String }}
-
{{ .data.AT.Name.String }}
-
{{ .data.EP.Rating.Float64 }} von 10
-
{{ .data.EP.Votes.Int64 }} Stimmen
+
+
+
+ + +
{{ .data.EP.Rating.Float64 }} von 10
+
{{ .data.EP.Votes.Int64 }} Stimmen
+
-

{{ .data.EP.Name.String }}

-

{{ .data.DESC }}

+

{{ .data.EP.Name.String }}

+

{{ .data.DESC }}

{{ template "footer.html" . }} diff --git a/gserver/templates/index.html b/gserver/templates/index.html index 93ba8a7..30b8e72 100644 --- a/gserver/templates/index.html +++ b/gserver/templates/index.html @@ -4,12 +4,12 @@

{{ .title }}