diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 5e31172e1b..a4f6042eea 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -27,7 +27,7 @@ FROM docker.io/library/golang:1.16-bullseye AS build-env LABEL maintainer="infra-root@openstack.org" -ARG GITEA_VERSION="v1.14.7" +ARG GITEA_VERSION="v1.15.3" ENV TAGS "bindata $TAGS" #Build deps diff --git a/docker/gitea/custom/public/robots.txt b/docker/gitea/custom/robots.txt similarity index 100% rename from docker/gitea/custom/public/robots.txt rename to docker/gitea/custom/robots.txt diff --git a/docker/gitea/custom/templates/base/head_navbar.tmpl b/docker/gitea/custom/templates/base/head_navbar.tmpl index ea5870f9b1..1e96c6c5f4 100644 --- a/docker/gitea/custom/templates/base/head_navbar.tmpl +++ b/docker/gitea/custom/templates/base/head_navbar.tmpl @@ -1,7 +1,7 @@ @@ -72,17 +72,19 @@ -
- {{$.CsrfTokenHtml}} -
- - - {{CountFmt .NumStars}} - -
-
+ {{if not $.DisableStars}} +
+ {{$.CsrfTokenHtml}} +
+ + + {{CountFmt .NumStars}} + +
+
+ {{end}} {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
diff --git a/playbooks/roles/gitea/templates/app.ini.j2 b/playbooks/roles/gitea/templates/app.ini.j2 index 21cb861a7a..791359a844 100644 --- a/playbooks/roles/gitea/templates/app.ini.j2 +++ b/playbooks/roles/gitea/templates/app.ini.j2 @@ -32,6 +32,7 @@ LOG_SQL = false [repository] ROOT = /data/git/repositories DISABLED_REPO_UNITS = repo.issues,repo.pulls,repo.wiki,repo.projects +DISABLE_STARS = true [indexer] ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve