Remove stars when repo goes private (#19904)

Fixes #18600
This commit is contained in:
Wim
2023-06-05 15:25:43 +02:00
committed by GitHub
parent 8e63373c01
commit 62ac3251fa
5 changed files with 38 additions and 1 deletions

View File

@ -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}}