Skip to content

Commit

Permalink
fix "Remove stars when repo goes private go-gitea#19904"
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jun 5, 2023
1 parent 1a5f478 commit b9e95ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/settings/options.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{if not .Repository.IsFork}}
<div class="inline field">
<label>{{.locale.Tr "repo.visibility"}}</label>
<div class="ui checkbox{{if and (not .Repository.IsPrivate) (gt .Repository.NumStars 0)}} tooltip{{end}}" data-content="{{.locale.Tr "repo.stars_remove_warning"}}">
<div class="ui checkbox{{if and (not .Repository.IsPrivate) (gt .Repository.NumStars 0)}} tooltip{{end}}" data-tooltip-content="{{.locale.Tr "repo.stars_remove_warning"}}">
{{if .IsAdmin}}
<input name="private" type="checkbox" {{if .Repository.IsPrivate}}checked{{end}}>
{{else}}
Expand Down

0 comments on commit b9e95ef

Please sign in to comment.