diff options
author | Divyam Bhasin <divbest99@gmail.com> | 2020-10-23 19:01:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 19:01:58 -0400 |
commit | 9b11c3e32037a77e53551127d26dbf54139aa2fc (patch) | |
tree | 57d4bf12dc8eacaa367b9e32b3d35589ccb20fd5 /templates/org | |
parent | d2ad4dec63cb3ee94b5ba997aa2e2514abc53096 (diff) | |
download | gitea-9b11c3e32037a77e53551127d26dbf54139aa2fc.tar.gz gitea-9b11c3e32037a77e53551127d26dbf54139aa2fc.zip |
#13091 - add new mirror button (#13105)
* added button
* got URL params to carry through to service specific migrate pages
* do not display add mirror button if mirroring turned off
* added corrections by reviewers
* Add silverwind's suggestion
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/home.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 024be119bd..fba7de3f1f 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -28,6 +28,9 @@ <div class="ui eleven wide column"> {{if .CanCreateOrgRepo}} <div class="text right"> + {{if not .DisabledMirrors}} + <a class="ui green button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{.i18n.Tr "new_migrate"}}</a> + {{end}} <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{.i18n.Tr "new_repo"}}</a> </div> <div class="ui divider"></div> |