fix(ui): visibility badge floated right of title #430

Merged
jmiller merged 1 commits from dev into main 2026-06-02 18:51:59 +00:00
+12 -4
View File
@@ -879,18 +879,26 @@
{{if not .Repository.IsFork}}
<div class="item tw-items-center">
<div class="item-main">
<div class="item-title">{{ctx.Locale.Tr "repo.visibility"}}</div>
<div class="item-title tw-flex tw-items-center tw-justify-between">
<span>{{ctx.Locale.Tr "repo.visibility"}}</span>
{{if .IsSystemRepo}}
<span class="ui grey label">System</span>
{{else if .Repository.IsHidden}}
<span class="ui red label">{{ctx.Locale.Tr "repo.settings.visibility.hidden.label"}}</span>
{{else if .Repository.IsPrivate}}
<span class="ui orange label">{{ctx.Locale.Tr "repo.settings.visibility.private.label"}}</span>
{{else}}
<span class="ui green label">{{ctx.Locale.Tr "repo.settings.visibility.public.label"}}</span>
{{end}}
</div>
<div class="item-body">
{{if .IsSystemRepo}}
This is a system repository. System repositories are always private.
{{else if .Repository.IsHidden}}
<span class="ui red label">{{ctx.Locale.Tr "repo.settings.visibility.hidden.label"}}</span>
{{ctx.Locale.Tr "repo.settings.visibility.hidden.desc"}}
{{else if .Repository.IsPrivate}}
<span class="ui orange label">{{ctx.Locale.Tr "repo.settings.visibility.private.label"}}</span>
{{ctx.Locale.Tr "repo.settings.visibility.private.desc"}}
{{else}}
<span class="ui green label">{{ctx.Locale.Tr "repo.settings.visibility.public.label"}}</span>
{{ctx.Locale.Tr "repo.settings.visibility.public.desc"}}
{{end}}
</div>