mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
show apapiurl in repo settings
This commit is contained in:
parent
73cf1e3901
commit
976d79044f
4 changed files with 6 additions and 0 deletions
|
@ -575,6 +575,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
|
|||
|
||||
ctx.Data["Title"] = owner.Name + "/" + repo.Name
|
||||
ctx.Data["Repository"] = repo
|
||||
ctx.Data["RepositoryAPAPIURL"] = repo.APAPIURL()
|
||||
ctx.Data["Owner"] = ctx.Repo.Repository.Owner
|
||||
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner()
|
||||
ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin()
|
||||
|
|
|
@ -1993,6 +1993,7 @@ settings.hooks=Webhooks
|
|||
settings.githooks=Git-Hooks
|
||||
settings.basic_settings=Grundeinstellungen
|
||||
settings.federation_settings=Föderationseinstellungen
|
||||
settings.federation_apapiurl=Föderierungs-URL dieses Repositories. Kopiere sie und füge sie in die Föderationseinstellungen eines anderen Repository ein als dem Repository folgendes Repository.
|
||||
settings.federation_following_repos=URLs der Repos, die diesem Repo folgen. Getrennt mittels ";", keine Leerzeichen.
|
||||
settings.federation_not_enabled=Föderierung ist auf deiner Instanz nicht aktiviert.
|
||||
settings.mirror_settings=Mirror-Einstellungen
|
||||
|
|
|
@ -2045,6 +2045,7 @@ settings.hooks = Webhooks
|
|||
settings.githooks = Git Hooks
|
||||
settings.basic_settings = Basic Settings
|
||||
settings.federation_settings=Federation Settings
|
||||
settings.federation_apapiurl=Federation URL of this repository. Copy and paste this into Federation Settings of another repository as an URL of a Following Repository.
|
||||
settings.federation_following_repos=URLs of Following Repositories. Separated by ";", no whitespace.
|
||||
settings.federation_not_enabled=Federation is not enabled on your instance.
|
||||
settings.mirror_settings = Mirror Settings
|
||||
|
|
|
@ -72,6 +72,9 @@
|
|||
{{.CsrfTokenHtml}}
|
||||
<input type="hidden" name="action" value="federation">
|
||||
<div class="field {{if .Err_FollowingRepos}}error{{end}}">
|
||||
<p>{{ctx.Locale.Tr "repo.settings.federation_apapiurl"}}</p>
|
||||
<p><b>{{.RepositoryAPAPIURL}}<b></p>
|
||||
<div class="divider"></div>
|
||||
<label for="following_repos">{{ctx.Locale.Tr "repo.settings.federation_following_repos"}}</label>
|
||||
<input id="following_repos" name="federation_repos" value="{{.FollowingRepos}}">
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue