From 8cc767be901b6e7ef345e0e3eb12509f741b466b Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Sun, 12 Feb 2023 14:28:32 +0100 Subject: [PATCH] Fixes related to the embed mode. --- template.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/template.html b/template.html index 622c926..08ca7ce 100644 --- a/template.html +++ b/template.html @@ -23,35 +23,36 @@ {{end}} + {{$embed := .Req.URL.Query.embed}}
{{- if and (eq .Sort "name") (ne .Order "desc")}} - Name + Name {{- else if and (eq .Sort "name") (ne .Order "asc")}} - Name + Name {{- else}} - Name + Name {{- end}} {{- if and (eq .Sort "size") (ne .Order "desc")}} - Size + Size {{- else if and (eq .Sort "size") (ne .Order "asc")}} - Size + Size {{- else}} - Size + Size {{- end}} {{- if and (eq .Sort "time") (ne .Order "desc")}} - Modified + Modified {{- else if and (eq .Sort "time") (ne .Order "asc")}} - Modified + Modified {{- else}} - Modified + Modified {{- end}}