From ede2da8f8dcd08f3ede98801d7df21648391b1bc Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 20 Nov 2021 23:27:06 +0100 Subject: [PATCH] Problem: templates are not used Solution: remove templates directory --- cmd/eksterd/templates/auth.html | 1 - cmd/eksterd/templates/channel.html | 1 - templates/auth.html | 100 ----------------------- templates/base.html | 49 ------------ templates/channel.html | 122 ----------------------------- templates/index.html | 71 ----------------- templates/logs.html | 50 ------------ templates/settings.html | 63 --------------- 8 files changed, 457 deletions(-) delete mode 100644 templates/auth.html delete mode 100644 templates/base.html delete mode 100644 templates/channel.html delete mode 100644 templates/index.html delete mode 100644 templates/logs.html delete mode 100644 templates/settings.html diff --git a/cmd/eksterd/templates/auth.html b/cmd/eksterd/templates/auth.html index 1328c6a..d873afd 100644 --- a/cmd/eksterd/templates/auth.html +++ b/cmd/eksterd/templates/auth.html @@ -1,4 +1,3 @@ -{{- /*gotype: p83.nl/go/ekster/cmd/eksterd.authPage*/ -}} diff --git a/cmd/eksterd/templates/channel.html b/cmd/eksterd/templates/channel.html index f2915e0..cfdc0bb 100644 --- a/cmd/eksterd/templates/channel.html +++ b/cmd/eksterd/templates/channel.html @@ -1,4 +1,3 @@ -{{- /*gotype: p83.nl/go/ekster/cmd/eksterd.settingsPage*/ -}} diff --git a/templates/auth.html b/templates/auth.html deleted file mode 100644 index 8f9727e..0000000 --- a/templates/auth.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - -Ekster - - - -
-
- - - - -

Ekster - Microsub server

- -
-
- - -
- -
-

{{ .ClientID }}

-
-
-

{{ .App.Name }}

-
-
-

-
-
- -
- -
-

{{ .RedirectURI }}

-
-
- -
- -
-

{{ .Scope }}

-
-
- -
- -
-
- -
-
-
- -
-
- -
-
-
-
-
-
- - diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index b3a6099..0000000 --- a/templates/base.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - {{template "title" .}} - - - -
-
- - -

Ekster - Microsub server

- - {{template "content" .}} -
-
- - -{{define "header"}}{{end}} -{{define "content"}}{{end}} -{{define "footer"}}{{end}} diff --git a/templates/channel.html b/templates/channel.html deleted file mode 100644 index cfdc0bb..0000000 --- a/templates/channel.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - -Ekster - - - -
-
- - -

Ekster - Microsub server

- - {{ $channel := .CurrentChannel }} - - - -

{{ $channel.Name }}

- -
-
-

Settings

-
- -
- -
- -
-
-
- -
- -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
-
- -
-
-
-
- -
-

Feeds

- -
- {{ range .Feeds }} -
- -
- {{ else }} -
No feeds
- {{ end }} -
-
-
-
-
- - diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 98566c7..0000000 --- a/templates/index.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - -Ekster - - - - - - -
-
- - - - -

Ekster - Microsub server

- - {{ if .Session.LoggedIn }} -

Logout

-
- -
- {{ else }} -

Sign in to Ekster

-
-
- -
- -
-
-
-
- -
-
-
- {{ end }} -
-
- - diff --git a/templates/logs.html b/templates/logs.html deleted file mode 100644 index cea2a57..0000000 --- a/templates/logs.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - -Ekster - - - -
-
- - - - -

Ekster - Microsub server

- -

Logs

- -

Logs

-
-
- - diff --git a/templates/settings.html b/templates/settings.html deleted file mode 100644 index ff69516..0000000 --- a/templates/settings.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - -Ekster - - - -
-
- - -

Ekster - Microsub server

- - {{ if .Session.LoggedIn }} - {{ end }} - -

Channels

- -
- {{ range .Channels }} - - {{ else }} -
No channels
- {{ end }} -
-
-
- -