Skip to content

Commit db8b488

Browse files
committed
Increase table cell padding, use icons in admin table headers
Fixes: go-gitea#25939
1 parent 52fb936 commit db8b488

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

templates/admin/repo/list.tmpl

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,25 @@
1919
{{.locale.Tr "admin.repos.name"}}
2020
{{SortArrow "alphabetically" "reversealphabetically" $.SortType false}}
2121
</th>
22-
<th>{{.locale.Tr "admin.repos.watches"}}</th>
23-
<th data-sortt-asc="moststars" data-sortt-desc="feweststars">
24-
{{.locale.Tr "admin.repos.stars"}}
22+
<th data-tooltip-content="{{.locale.Tr "admin.repos.watches"}}">
23+
{{svg "octicon-eye"}}
24+
</th>
25+
<th data-tooltip-content="{{.locale.Tr "admin.repos.stars"}}" data-sortt-asc="moststars" data-sortt-desc="feweststars">
26+
{{svg "octicon-star"}}
2527
{{SortArrow "moststars" "feweststars" $.SortType false}}
2628
</th>
27-
<th data-sortt-asc="mostforks" data-sortt-desc="fewestforks">
28-
{{.locale.Tr "admin.repos.forks"}}
29+
<th data-tooltip-content="{{.locale.Tr "admin.repos.forks"}}" data-sortt-asc="mostforks" data-sortt-desc="fewestforks">
30+
{{svg "octicon-repo-forked"}}
2931
{{SortArrow "mostforks" "fewestforks" $.SortType false}}
3032
</th>
31-
<th>{{.locale.Tr "admin.repos.issues"}}</th>
32-
<th data-sortt-asc="gitsize" data-sortt-desc="reversegitsize">
33+
<th data-tooltip-content="{{.locale.Tr "admin.repos.issues"}}">
34+
{{svg "octicon-issue-opened"}}
35+
</th>
36+
<th data-sortt-asc="gitsize" data-sortt-desc="reversegitsize">
3337
{{.locale.Tr "admin.repos.size"}}
3438
{{SortArrow "gitsize" "reversegitsize" $.SortType false}}
3539
</th>
36-
<th data-sortt-asc="lfssize" data-sortt-desc="reverselfssize">
40+
<th data-sortt-asc="lfssize" data-sortt-desc="reverselfssize">
3741
{{.locale.Tr "admin.repos.lfs_size"}}
3842
{{SortArrow "lfssize" "reverselfssize" $.SortType false}}
3943
</th>

templates/admin/user/list.tmpl

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,21 @@
6767
{{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
6868
</th>
6969
<th>{{.locale.Tr "email"}}</th>
70-
<th>{{.locale.Tr "admin.users.activated"}}</th>
71-
<th>{{.locale.Tr "admin.users.admin"}}</th>
72-
<th>{{.locale.Tr "admin.users.restricted"}}</th>
73-
<th>{{.locale.Tr "admin.users.2fa"}}</th>
74-
<th>{{.locale.Tr "admin.users.repos"}}</th>
70+
<th data-tooltip-content="{{.locale.Tr "admin.users.activated"}}">
71+
{{svg "octicon-check-circle"}}
72+
</th>
73+
<th data-tooltip-content="{{.locale.Tr "admin.users.admin"}}">
74+
{{svg "octicon-gear"}}
75+
</th>
76+
<th data-tooltip-content="{{.locale.Tr "admin.users.restricted"}}">
77+
{{svg "octicon-skip"}}
78+
</th>
79+
<th data-tooltip-content="{{.locale.Tr "admin.users.2fa"}}">
80+
{{svg "octicon-key"}}
81+
</th>
82+
<th data-tooltip-content="{{.locale.Tr "admin.users.repos"}}">
83+
{{svg "octicon-repo"}}
84+
</th>
7585
<th>{{.locale.Tr "admin.users.created"}}</th>
7686
<th data-sortt-asc="lastlogin" data-sortt-desc="reverselastlogin">
7787
{{.locale.Tr "admin.users.last_login"}}

web_src/css/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ a.label,
883883
.ui.table > thead > tr > th,
884884
.ui.table > tbody > tr > td,
885885
.ui.table > tr > td {
886-
padding: 6px 3px;
886+
padding: 6px;
887887
}
888888
/* use more horizontal padding on first and last items for visuals */
889889
.ui.table > thead > tr > th:first-of-type,

0 commit comments

Comments
 (0)