diff --git a/modules/context/repo.go b/modules/context/repo.go index 695ab0f9aa..d836eda756 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -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() diff --git a/options/locale/locale_de-DE.ini b/options/locale/locale_de-DE.ini index dadd32dc26..01945ef8d4 100644 --- a/options/locale/locale_de-DE.ini +++ b/options/locale/locale_de-DE.ini @@ -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 diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 4dfacd0e15..f41d232413 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -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 diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index a4eb2836ef..51e2836830 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -72,6 +72,9 @@ {{.CsrfTokenHtml}}
{{ctx.Locale.Tr "repo.settings.federation_apapiurl"}}
+{{.RepositoryAPAPIURL}}
+