diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 6b0213b85d..1ef7003c8a 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -22,11 +22,11 @@ ################################### #Build stage -FROM docker.io/library/golang:1.13-buster AS build-env +FROM docker.io/library/golang:1.14-buster AS build-env LABEL maintainer="infra-root@openstack.org" -ARG GITEA_VERSION="v1.11.4" +ARG GITEA_VERSION="v1.12.0" ENV TAGS "bindata $TAGS" #Build deps @@ -58,6 +58,7 @@ RUN apt-get update && apt-get -y install \ git \ openssh-client \ tzdata \ + gnupg \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/docker/gitea/custom/templates/base/head_navbar.tmpl b/docker/gitea/custom/templates/base/head_navbar.tmpl index 0503ae8cd5..c518df60ae 100644 --- a/docker/gitea/custom/templates/base/head_navbar.tmpl +++ b/docker/gitea/custom/templates/base/head_navbar.tmpl @@ -8,11 +8,19 @@ - {{if .IsSigned}} + {{if and .IsSigned .MustChangePassword}} + {{/* No links */}} + {{else if .IsSigned}} {{.i18n.Tr "dashboard"}} + {{if not .UnitIssuesGlobalDisabled}} {{.i18n.Tr "issues"}} + {{end}} + {{if not .UnitPullsGlobalDisabled}} {{.i18n.Tr "pull_requests"}} + {{end}} + {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} {{if .ShowMilestonesDashboardPage}}{{.i18n.Tr "milestones"}}{{end}} + {{end}} {{.i18n.Tr "explore"}} {{else if .IsLandingPageHome}} {{.i18n.Tr "home"}} @@ -34,37 +42,59 @@ */}} - {{if .IsSigned}} + + {{if and .IsSigned .MustChangePassword}} +
+ {{else if .IsSigned}} {{end}} -