From 75abffda62f608bbe003eb22c6e0c174b962eb36 Mon Sep 17 00:00:00 2001 From: Seednode Date: Fri, 22 Dec 2023 10:22:42 -0600 Subject: [PATCH] Add admin prefix to first/prev/next/last links in info pages --- cmd/info.go | 12 ++++++++---- cmd/root.go | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cmd/info.go b/cmd/info.go index 2e6e5cf..ff12dcd 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -57,22 +57,26 @@ func paginateIndex(page int, fileCount int, ending bool) string { html.WriteString("") } - html.WriteString(fmt.Sprintf("", + html.WriteString(fmt.Sprintf("", Prefix, + AdminPrefix, firstPage)) - html.WriteString(fmt.Sprintf("", + html.WriteString(fmt.Sprintf("", Prefix, + AdminPrefix, prevPage, prevStatus)) - html.WriteString(fmt.Sprintf("", + html.WriteString(fmt.Sprintf("", Prefix, + AdminPrefix, nextPage, nextStatus)) - html.WriteString(fmt.Sprintf("", + html.WriteString(fmt.Sprintf("", Prefix, + AdminPrefix, lastPage)) html.WriteString("\n") diff --git a/cmd/root.go b/cmd/root.go index d39c745..a2a3fd7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -13,7 +13,7 @@ import ( ) const ( - ReleaseVersion string = "3.4.1" + ReleaseVersion string = "3.4.2" ) var (