diff options
author | Samuel Cochran <sj26@sj26.com> | 2018-11-29 23:21:16 +1100 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2018-11-29 07:21:16 -0500 |
commit | 084d9e0009f9238c349ee8460d0ea82efaa9830c (patch) | |
tree | 02826a74f11d1266b8cba7adf8cdb5b0dfd4f05d | |
parent | 3db9b06a6ed0a217e72ea361867604477dcd25be (diff) |
templates/user/dashboard: include 'org' query parameter in new mirror URL (#5534)
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index a366a531..6dd3ccb9 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -107,7 +107,7 @@ <div class="ui top attached header"> {{.i18n.Tr "home.my_mirrors"}} <span class="ui grey label">{{.MirrorCount}}</span> <div class="ui right"> - <a class="poping up" href="{{AppSubURL}}/repo/migrate?mirror=1" data-content="{{.i18n.Tr "new_mirror"}}" data-variation="tiny inverted" data-position="left center"> + <a class="poping up" href="{{AppSubURL}}/repo/migrate?mirror=1{{if .ContextUser.IsOrganization}}&org={{.ContextUser.ID}}{{end}}" data-content="{{.i18n.Tr "new_mirror"}}" data-variation="tiny inverted" data-position="left center"> <i class="plus icon"></i> <span class="sr-only">{{.i18n.Tr "new_mirror"}}</span> </a> |