Hotfix ui templates
This commit is contained in:
@@ -57,13 +57,13 @@ type uiHandler struct {
|
|||||||
var templates *template.Template
|
var templates *template.Template
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
currentDir := "pkg/qbit/server"
|
templates = template.Must(template.ParseFS(
|
||||||
templates = template.Must(template.ParseFiles(
|
content,
|
||||||
currentDir+"/templates/layout.html",
|
"templates/layout.html",
|
||||||
currentDir+"/templates/index.html",
|
"templates/index.html",
|
||||||
currentDir+"/templates/download.html",
|
"templates/download.html",
|
||||||
currentDir+"/templates/repair.html",
|
"templates/repair.html",
|
||||||
currentDir+"/templates/config.html",
|
"templates/config.html",
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ fi
|
|||||||
|
|
||||||
# Set tag based on branch
|
# Set tag based on branch
|
||||||
if [ "$BETA" = true ]; then
|
if [ "$BETA" = true ]; then
|
||||||
TAG="beta-$VERSION"
|
TAG="$VERSION-beta"
|
||||||
BRANCH="beta"
|
BRANCH="beta"
|
||||||
else
|
else
|
||||||
TAG="$VERSION"
|
TAG="$VERSION"
|
||||||
|
|||||||
Reference in New Issue
Block a user