diff options
author | Unknwon <u@gogs.io> | 2015-09-01 11:43:53 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-01 11:43:53 -0400 |
commit | 398569f6f8c9636a7497a250f02e9c6b0a27ea9a (patch) | |
tree | e706abe838eb5311c02cf47e5e5b99a9c221090e /templates | |
parent | dde9ace91b3e492386d4b31996ae970f5c9c10bd (diff) | |
download | gitea-398569f6f8c9636a7497a250f02e9c6b0a27ea9a.tar.gz gitea-398569f6f8c9636a7497a250f02e9c6b0a27ea9a.zip |
#1021 Forked repo unavailable after deleting original repo
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/create.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/settings/options.tmpl | 7 |
3 files changed, 8 insertions, 3 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index ef0ab10a97..084c99c200 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -11,7 +11,7 @@ {{template "base/alert" .}} <div class="inline required field {{if .Err_Owner}}error{{end}}"> <label>{{.i18n.Tr "repo.owner"}}</label> - <div class="ui selection dropdown"> + <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.Id}}" required> <span class="text"> <img class="ui mini image" src="{{.ContextUser.AvatarLink}}"> diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index 01bbe9b797..cc2005c226 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -45,7 +45,7 @@ </div> <div class="inline field"> <label>{{.i18n.Tr "repo.visibility"}}</label> - <div class="ui read-only toggle checkbox"> + <div class="ui read-only checkbox"> <input type="checkbox" {{if .IsPrivate}}checked{{end}}> <label>{{.i18n.Tr "repo.visiblity_helper" | Safe}}</label> </div> diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 02399bf11d..6218515537 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -47,7 +47,7 @@ <label>{{.i18n.Tr "repo.visibility"}}</label> <div class="ui checkbox"> <input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}> - <label>{{.i18n.Tr "repo.visiblity_helper" | Safe}}</label> + <label>{{.i18n.Tr "repo.visiblity_helper" | Safe}} {{if .Repository.NumForks}}<span class="text red">{{.i18n.Tr "repo.visiblity_fork_helper"}}</span>{{end}}</label> </div> </div> {{end}} @@ -138,6 +138,11 @@ <div class="ui warning message text left"> {{.i18n.Tr "repo.settings.delete_notices_1" | Safe}} <br> {{.i18n.Tr "repo.settings.delete_notices_2" | Safe}} + {{if .Repository.NumForks}}<br> + {{.i18n.Tr "repo.settings.delete_notices_fork_1" | Safe}} <br> + {{.i18n.Tr "repo.settings.delete_notices_fork_2" | Safe}} <br> + {{.i18n.Tr "repo.settings.delete_notices_fork_3" | Safe}} + {{end}} </div> <form class="ui form" action="{{.Link}}" method="post"> {{.CsrfTokenHtml}} |