From ae9cc2ac49b976992f2e924ef8d30bd540ce2ec0 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Sat, 24 Jul 2021 10:40:39 +0200 Subject: Add support for dlsrv streaming --- templates/embed.html | 11 +++++- templates/search.html | 100 +++++++++++++++++++++++++------------------------- 2 files changed, 61 insertions(+), 50 deletions(-) (limited to 'templates') diff --git a/templates/embed.html b/templates/embed.html index ff372ab..a9d9d68 100644 --- a/templates/embed.html +++ b/templates/embed.html @@ -1,4 +1,13 @@ {{define "title"}}Index{{end}} {{define "content"}} - + {{if ne .Dlsrv ""}} +
+ +
+ {{else}} + + {{end}} {{end}} diff --git a/templates/search.html b/templates/search.html index e5cff9a..6a9ce28 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,56 +1,58 @@ {{define "title"}}Search{{end}} {{define "content"}} -
- - + - + -
- - {{range .Items}} - - - - - {{if ne $.Dlsrv ""}} + + +
- - - {{.Title}} -
- {{.ChannelTitle}} | Atom feed -
- Comments -
- {{.ViewCount}} -
- {{.Published}} -
- {{.LengthText}} -
+ {{range .Items}} + - {{end}} - - {{end}} -
- Download +
- {{if ge .Page 0 }} - Prev Page | - Next Page - {{end}} + + {{.Title}} +
+ {{.ChannelTitle}} | Atom feed +
+ Comments +
+ {{.ViewCount}} +
+ {{.Published}} + + + {{.LengthText}} + + {{if ne $.Dlsrv ""}} + + Download + + {{end}} + + {{end}} + + {{if ge .Page 0 }} + Prev Page | + Next Page + {{end}} + {{end}} -- cgit v1.2.3