Hotfix ui templates

This commit is contained in:
Mukhtar Akere
2025-01-18 04:13:56 +01:00
parent 3841b7751e
commit a986c4b5d0
2 changed files with 8 additions and 8 deletions

View File

@@ -57,13 +57,13 @@ type uiHandler struct {
var templates *template.Template
func init() {
currentDir := "pkg/qbit/server"
templates = template.Must(template.ParseFiles(
currentDir+"/templates/layout.html",
currentDir+"/templates/index.html",
currentDir+"/templates/download.html",
currentDir+"/templates/repair.html",
currentDir+"/templates/config.html",
templates = template.Must(template.ParseFS(
content,
"templates/layout.html",
"templates/index.html",
"templates/download.html",
"templates/repair.html",
"templates/config.html",
))
}

View File

@@ -35,7 +35,7 @@ fi
# Set tag based on branch
if [ "$BETA" = true ]; then
TAG="beta-$VERSION"
TAG="$VERSION-beta"
BRANCH="beta"
else
TAG="$VERSION"