Add admin prefix to first/prev/next/last links in info pages
This commit is contained in:
parent
01191f7443
commit
75abffda62
12
cmd/info.go
12
cmd/info.go
|
@ -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")
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ReleaseVersion string = "3.4.1"
|
ReleaseVersion string = "3.4.2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue