Upgrade gitea to 1.15.3
We move robots.txt to custom/ instead of custom/public/ as custom/public/ is now served at /assets/ via the gitea webserver and we need robots.txt at the root. Related to this we update image urls to be prefixed with AssetUrlPrefix in their paths so that if this path changes against in the future we should automatically accomodate that. Change-Id: I8ce5fe8ff342617ff156a401be8418d593fd35c4
This commit is contained in:
parent
bcb437237a
commit
048a918a61
@ -27,7 +27,7 @@ FROM docker.io/library/golang:1.16-buster AS build-env
|
|||||||
|
|
||||||
LABEL maintainer="infra-root@openstack.org"
|
LABEL maintainer="infra-root@openstack.org"
|
||||||
|
|
||||||
ARG GITEA_VERSION="v1.14.7"
|
ARG GITEA_VERSION="v1.15.3"
|
||||||
ENV TAGS "bindata $TAGS"
|
ENV TAGS "bindata $TAGS"
|
||||||
|
|
||||||
#Build deps
|
#Build deps
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="ui container" id="navbar">
|
<div class="ui container" id="navbar">
|
||||||
<div class="item brand" style="justify-content: space-between;">
|
<div class="item brand" style="justify-content: space-between;">
|
||||||
<a href="{{AppSubUrl}}/">
|
<a href="{{AppSubUrl}}/">
|
||||||
<img class="ui mini image" with="30" height="30" src="{{StaticUrlPrefix}}/img/logo.svg">
|
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg">
|
||||||
</a>
|
</a>
|
||||||
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
|
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
|
||||||
<i class="sidebar icon"></i>
|
<i class="sidebar icon"></i>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
{{template "custom/extra_links" .}}
|
{{template "custom/extra_links" .}}
|
||||||
|
|
||||||
{{/*
|
{{/* TODO
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="ui icon input">
|
<div class="ui icon input">
|
||||||
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
|
||||||
@ -100,7 +100,7 @@
|
|||||||
class="ui button mini compact basic icon fitted poping up"
|
class="ui button mini compact basic icon fitted poping up"
|
||||||
data-content="{{.i18n.Tr "repo.issues.cancel_tracking"}}"
|
data-content="{{.i18n.Tr "repo.issues.cancel_tracking"}}"
|
||||||
data-position="top right" data-variation="small inverted"
|
data-position="top right" data-variation="small inverted"
|
||||||
>{{svg "octicon-trashcan"}}</button>
|
>{{svg "octicon-trash"}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -157,10 +157,12 @@
|
|||||||
{{svg "octicon-person"}}
|
{{svg "octicon-person"}}
|
||||||
{{.i18n.Tr "your_profile"}}<!-- Your profile -->
|
{{.i18n.Tr "your_profile"}}<!-- Your profile -->
|
||||||
</a>
|
</a>
|
||||||
<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
|
{{if not .DisableStars}}
|
||||||
{{svg "octicon-star"}}
|
<a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
|
||||||
{{.i18n.Tr "your_starred"}}
|
{{svg "octicon-star"}}
|
||||||
</a>
|
{{.i18n.Tr "your_starred"}}
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
<a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
|
<a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
|
||||||
{{svg "octicon-tools"}}
|
{{svg "octicon-tools"}}
|
||||||
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
|
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
|
||||||
|
@ -3,23 +3,23 @@
|
|||||||
<div class="ui stackable middle very relaxed page grid">
|
<div class="ui stackable middle very relaxed page grid">
|
||||||
<div class="sixteen wide center aligned centered column">
|
<div class="sixteen wide center aligned centered column">
|
||||||
<div class="hero" id="opendev">
|
<div class="hero" id="opendev">
|
||||||
<img alt="OpenDev" class="logo" src="/img/opendev.svg" />
|
<img alt="OpenDev" class="logo" src="{{AssetUrlPrefix}}/img/opendev.svg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="four wide center aligned centered column">
|
<div class="four wide center aligned centered column">
|
||||||
<div><img alt="Gitea" src="/img/git.svg" width="60"></div>
|
<div><img alt="Gitea" src="{{AssetUrlPrefix}}/img/git.svg" width="60"></div>
|
||||||
<a href="https://opendev.org/explore/organizations">Code hosting</a>
|
<a href="https://opendev.org/explore/organizations">Code hosting</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="four wide center aligned centered column">
|
<div class="four wide center aligned centered column">
|
||||||
<div><img alt="Gerrit" src="/img/gerrit.svg" width="60"></div>
|
<div><img alt="Gerrit" src="{{AssetUrlPrefix}}/img/gerrit.svg" width="60"></div>
|
||||||
<a href="https://review.opendev.org/">Code review</a>
|
<a href="https://review.opendev.org/">Code review</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="four wide center aligned centered column">
|
<div class="four wide center aligned centered column">
|
||||||
<div><img alt="Zuul CI" src="/img/zuul.svg" width="60"></div>
|
<div><img alt="Zuul CI" src="{{AssetUrlPrefix}}/img/zuul.svg" width="60"></div>
|
||||||
<a href="https://zuul.opendev.org/">Continuous integration</a>
|
<a href="https://zuul.opendev.org/">Continuous integration</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="four wide center aligned centered column">
|
<div class="four wide center aligned centered column">
|
||||||
<div><img alt="Etherpad" src="/img/etherpad.svg" width="60"></div>
|
<div><img alt="Etherpad" src="{{AssetUrlPrefix}}/img/etherpad.svg" width="60"></div>
|
||||||
<a href="https://etherpad.opendev.org/">Collaborative editing</a>
|
<a href="https://etherpad.opendev.org/">Collaborative editing</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,11 +32,11 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .IsArchived}}
|
{{if .IsArchived}}
|
||||||
<span class="ui basic label">{{$.i18n.Tr "repo.desc.archived"}}</span>
|
<span class="ui basic label">{{$.i18n.Tr "repo.desc.archived"}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}}
|
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{(MirrorRemoteAddress $.Mirror).Address}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{(MirrorRemoteAddress $.Mirror).Address}}{{end}}</a></div>{{end}}
|
||||||
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}}
|
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}}
|
||||||
{{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}}
|
{{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}}
|
||||||
</div>
|
</div>
|
||||||
@ -72,17 +72,19 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<form method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}">
|
{{if not $.DisableStars}}
|
||||||
{{$.CsrfTokenHtml}}
|
<form method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}">
|
||||||
<div class="ui labeled button{{if not $.IsSigned}} poping up{{end}}" tabindex="0"{{if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.star_guest_user" }}" data-position="top center" data-variation="tiny"{{end}}>
|
{{$.CsrfTokenHtml}}
|
||||||
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}}>
|
<div class="ui labeled button{{if not $.IsSigned}} poping up{{end}}" tabindex="0"{{if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.star_guest_user" }}" data-position="top center" data-variation="tiny"{{end}}>
|
||||||
{{if $.IsStaringRepo}}{{svg "octicon-star-fill"}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star"}}{{$.i18n.Tr "repo.star"}}{{end}}
|
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}}>
|
||||||
</button>
|
{{if $.IsStaringRepo}}{{svg "octicon-star-fill"}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star"}}{{$.i18n.Tr "repo.star"}}{{end}}
|
||||||
<a class="ui basic label" href="{{.Link}}/stars">
|
</button>
|
||||||
{{CountFmt .NumStars}}
|
<a class="ui basic label" href="{{.Link}}/stars">
|
||||||
</a>
|
{{CountFmt .NumStars}}
|
||||||
</div>
|
</a>
|
||||||
</form>
|
</div>
|
||||||
|
</form>
|
||||||
|
{{end}}
|
||||||
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
|
{{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}}
|
||||||
<div class="ui labeled button{{if not $.CanSignedUserFork}} poping up disabled{{end}}"{{if and (not $.CanSignedUserFork) $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{else if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_guest_user"}}"{{end}} data-position="top center" data-variation="tiny" tabindex="0">
|
<div class="ui labeled button{{if not $.CanSignedUserFork}} poping up disabled{{end}}"{{if and (not $.CanSignedUserFork) $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{else if not $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_guest_user"}}"{{end}} data-position="top center" data-variation="tiny" tabindex="0">
|
||||||
<a class="ui compact small basic button"{{if $.CanSignedUserFork}} href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{end}}>
|
<a class="ui compact small basic button"{{if $.CanSignedUserFork}} href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{end}}>
|
||||||
|
@ -32,6 +32,7 @@ LOG_SQL = false
|
|||||||
[repository]
|
[repository]
|
||||||
ROOT = /data/git/repositories
|
ROOT = /data/git/repositories
|
||||||
DISABLED_REPO_UNITS = repo.issues,repo.pulls,repo.wiki,repo.projects
|
DISABLED_REPO_UNITS = repo.issues,repo.pulls,repo.wiki,repo.projects
|
||||||
|
DISABLE_STARS = true
|
||||||
|
|
||||||
[indexer]
|
[indexer]
|
||||||
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
|
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
|
||||||
|
Loading…
x
Reference in New Issue
Block a user