summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorWim <wim@42.be>2023-06-05 15:25:43 +0200
committerGitHub <noreply@github.com>2023-06-05 13:25:43 +0000
commit62ac3251fa545d32bdfc9ff824106b97ec63edbb (patch)
tree81378a4217e7e3db5fd49889aac969a75507c0fc /templates
parent8e63373c014ea681309a2e44ecfb0fbfb88a16f7 (diff)
downloadgitea-62ac3251fa545d32bdfc9ff824106b97ec63edbb.tar.gz
gitea-62ac3251fa545d32bdfc9ff824106b97ec63edbb.zip
Remove stars when repo goes private (#19904)
Fixes #18600
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/settings/options.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index e54c8a23a2..809fd87dc6 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -26,7 +26,7 @@
{{if not .Repository.IsFork}}
<div class="inline field">
<label>{{.locale.Tr "repo.visibility"}}</label>
- <div class="ui checkbox">
+ <div class="ui checkbox{{if and (not .Repository.IsPrivate) (gt .Repository.NumStars 0)}} tooltip{{end}}" data-content="{{.locale.Tr "repo.stars_remove_warning"}}">
{{if .IsAdmin}}
<input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}>
{{else}}