Skip to content

Commit 54babc7

Browse files
committed
fine tune table
1 parent 2fccb6c commit 54babc7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

templates/repo/settings/public_access.tmpl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
<form class="ui form" method="post">
1515
{{.CsrfTokenHtml}}
1616
<table class="ui table unstackable tw-my-2">
17-
<tr>
18-
<th></th>
19-
<th>{{ctx.Locale.Tr "settings.permission_not_set"}}</th>
20-
<th>{{ctx.Locale.Tr "settings.permission_anonymous_read"}}</th>
21-
<th>{{ctx.Locale.Tr "settings.permission_everyone_read"}}</th>
22-
<th>{{ctx.Locale.Tr "settings.permission_everyone_write"}}</th>
23-
</tr>
17+
<thead>
18+
<tr>
19+
<th>{{ctx.Locale.Tr "units.unit"}}</th>
20+
<th class="tw-text-center">{{ctx.Locale.Tr "settings.permission_not_set"}}</th>
21+
<th class="tw-text-center">{{ctx.Locale.Tr "settings.permission_anonymous_read"}}</th>
22+
<th class="tw-text-center">{{ctx.Locale.Tr "settings.permission_everyone_read"}}</th>
23+
<th class="tw-text-center">{{ctx.Locale.Tr "settings.permission_everyone_write"}}</th>
24+
</tr>
25+
</thead>
26+
<tbody>
2427
{{range $ua := .RepoUnitPublicAccesses}}
2528
<tr>
2629
<td>{{$ua.DisplayName}}</td>
@@ -36,6 +39,7 @@
3639
</td>
3740
</tr>
3841
{{end}}
42+
</tbody>
3943
</table>
4044
<ul class="tw-my-3 tw-pl-5 tw-flex tw-flex-col tw-gap-3">
4145
<li>{{ctx.Locale.Tr "repo.settings.public_access.docs.not_set"}}</li>

0 commit comments

Comments
 (0)