Add templates to customize text when creating and migrating repositories
These can be used to explain which types of repositories a Gitea instance is willing to host, or other rules for creating repositories.
This commit is contained in:
parent
25f4b7d7cd
commit
a31fedd2c2
4 changed files with 5 additions and 4 deletions
|
@ -9,10 +9,7 @@
|
||||||
</h3>
|
</h3>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
|
{{template "repo/create_helper" .}}
|
||||||
{{if not $.DisableMigrations}}
|
|
||||||
<p class="ui center">{{.locale.Tr "repo.new_repo_helper" ((printf "%s%s" AppSubUrl "/repo/migrate")|Escape) | Safe}}</p>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{if not .CanCreateRepo}}
|
{{if not .CanCreateRepo}}
|
||||||
<div class="ui negative message">
|
<div class="ui negative message">
|
||||||
|
|
3
templates/repo/create_helper.tmpl
Normal file
3
templates/repo/create_helper.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{{if not $.DisableMigrations}}
|
||||||
|
<p class="ui center">{{.locale.Tr "repo.new_repo_helper" ((printf "%s%s" AppSubUrl "/repo/migrate")|Escape) | Safe}}</p>
|
||||||
|
{{end}}
|
0
templates/repo/migrate/helper.tmpl
Normal file
0
templates/repo/migrate/helper.tmpl
Normal file
|
@ -2,6 +2,7 @@
|
||||||
<div class="page-content repository new migrate">
|
<div class="page-content repository new migrate">
|
||||||
<div class="ui middle very relaxed page grid">
|
<div class="ui middle very relaxed page grid">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
{{template "repo/migrate/helper" .}}
|
||||||
<div class="ui three stackable cards">
|
<div class="ui three stackable cards">
|
||||||
{{range .Services}}
|
{{range .Services}}
|
||||||
<a class="ui card df ac" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
<a class="ui card df ac" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
||||||
|
|
Loading…
Reference in a new issue