From 55916d584d10e2c1adc8415b988e5fa01dc7ee5d Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Mon, 26 Oct 2020 15:33:16 +0530 Subject: [PATCH] UI overhaul --- client/episodes.html | 29 ++++++++++++++++++++++++++--- client/index.html | 9 +++++++++ controllers/pages.go | 25 ++++++++++++++++++++++--- db/dbfunctions.go | 5 ++++- main.go | 16 ++++++++++++++++ 5 files changed, 77 insertions(+), 7 deletions(-) diff --git a/client/episodes.html b/client/episodes.html index 8a0cbb9..e83afc0 100644 --- a/client/episodes.html +++ b/client/episodes.html @@ -42,7 +42,7 @@ hr{
-

{{ .title }}

+

{{ .title }} ({{ .totalCount }})

{{template "navbar"}}
{{$setting := .setting}} @@ -54,8 +54,19 @@ hr{ {{ .Title }}
-

{{.Title}} // {{ .Podcast.Title}}

- {{ formatDate .PubDate }} + +
+
+

{{.Title}} // {{ .Podcast.Title}}

+
+
+ {{ formatDate .PubDate }} +
+
+ {{ formatDuration .Duration}} +
+
+

{{ .Summary }}

{{if .DownloadPath}} Download @@ -72,7 +83,19 @@ hr{

{{end}} + +
+ {{if .previousPage }} + Previous Page + {{end}} + {{if .nextPage }} + Next Page + {{end}} + +
+ + {{template "scripts"}}