Add admin prefix to first/prev/next/last links in info pages

This commit is contained in:
Seednode 2023-12-22 10:22:42 -06:00
parent 01191f7443
commit 75abffda62
2 changed files with 9 additions and 5 deletions

View File

@ -57,22 +57,26 @@ func paginateIndex(page int, fileCount int, ending bool) string {
html.WriteString("<tr><td>") html.WriteString("<tr><td>")
} }
html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s/index/html/%d';\">First</button>", html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s%s/index/html/%d';\">First</button>",
Prefix, Prefix,
AdminPrefix,
firstPage)) firstPage))
html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s/index/html/%d';\"%s>Prev</button>", html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s%s/index/html/%d';\"%s>Prev</button>",
Prefix, Prefix,
AdminPrefix,
prevPage, prevPage,
prevStatus)) prevStatus))
html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s/index/html/%d';\"%s>Next</button>", html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s%s/index/html/%d';\"%s>Next</button>",
Prefix, Prefix,
AdminPrefix,
nextPage, nextPage,
nextStatus)) nextStatus))
html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s/index/html/%d';\">Last</button>", html.WriteString(fmt.Sprintf("<button onclick=\"window.location.href = '%s%s/index/html/%d';\">Last</button>",
Prefix, Prefix,
AdminPrefix,
lastPage)) lastPage))
html.WriteString("</td></tr>\n") html.WriteString("</td></tr>\n")

View File

@ -13,7 +13,7 @@ import (
) )
const ( const (
ReleaseVersion string = "3.4.1" ReleaseVersion string = "3.4.2"
) )
var ( var (