Skip to content

Commit

Permalink
Increase table cell padding, use icons in admin table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jul 21, 2023
1 parent 52fb936 commit db8b488
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
20 changes: 12 additions & 8 deletions templates/admin/repo/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@
{{.locale.Tr "admin.repos.name"}}
{{SortArrow "alphabetically" "reversealphabetically" $.SortType false}}
</th>
<th>{{.locale.Tr "admin.repos.watches"}}</th>
<th data-sortt-asc="moststars" data-sortt-desc="feweststars">
{{.locale.Tr "admin.repos.stars"}}
<th data-tooltip-content="{{.locale.Tr "admin.repos.watches"}}">
{{svg "octicon-eye"}}
</th>
<th data-tooltip-content="{{.locale.Tr "admin.repos.stars"}}" data-sortt-asc="moststars" data-sortt-desc="feweststars">
{{svg "octicon-star"}}
{{SortArrow "moststars" "feweststars" $.SortType false}}
</th>
<th data-sortt-asc="mostforks" data-sortt-desc="fewestforks">
{{.locale.Tr "admin.repos.forks"}}
<th data-tooltip-content="{{.locale.Tr "admin.repos.forks"}}" data-sortt-asc="mostforks" data-sortt-desc="fewestforks">
{{svg "octicon-repo-forked"}}
{{SortArrow "mostforks" "fewestforks" $.SortType false}}
</th>
<th>{{.locale.Tr "admin.repos.issues"}}</th>
<th data-sortt-asc="gitsize" data-sortt-desc="reversegitsize">
<th data-tooltip-content="{{.locale.Tr "admin.repos.issues"}}">
{{svg "octicon-issue-opened"}}
</th>
<th data-sortt-asc="gitsize" data-sortt-desc="reversegitsize">
{{.locale.Tr "admin.repos.size"}}
{{SortArrow "gitsize" "reversegitsize" $.SortType false}}
</th>
<th data-sortt-asc="lfssize" data-sortt-desc="reverselfssize">
<th data-sortt-asc="lfssize" data-sortt-desc="reverselfssize">
{{.locale.Tr "admin.repos.lfs_size"}}
{{SortArrow "lfssize" "reverselfssize" $.SortType false}}
</th>
Expand Down
20 changes: 15 additions & 5 deletions templates/admin/user/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,21 @@
{{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
</th>
<th>{{.locale.Tr "email"}}</th>
<th>{{.locale.Tr "admin.users.activated"}}</th>
<th>{{.locale.Tr "admin.users.admin"}}</th>
<th>{{.locale.Tr "admin.users.restricted"}}</th>
<th>{{.locale.Tr "admin.users.2fa"}}</th>
<th>{{.locale.Tr "admin.users.repos"}}</th>
<th data-tooltip-content="{{.locale.Tr "admin.users.activated"}}">
{{svg "octicon-check-circle"}}
</th>
<th data-tooltip-content="{{.locale.Tr "admin.users.admin"}}">
{{svg "octicon-gear"}}
</th>
<th data-tooltip-content="{{.locale.Tr "admin.users.restricted"}}">
{{svg "octicon-skip"}}
</th>
<th data-tooltip-content="{{.locale.Tr "admin.users.2fa"}}">
{{svg "octicon-key"}}
</th>
<th data-tooltip-content="{{.locale.Tr "admin.users.repos"}}">
{{svg "octicon-repo"}}
</th>
<th>{{.locale.Tr "admin.users.created"}}</th>
<th data-sortt-asc="lastlogin" data-sortt-desc="reverselastlogin">
{{.locale.Tr "admin.users.last_login"}}
Expand Down
2 changes: 1 addition & 1 deletion web_src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ a.label,
.ui.table > thead > tr > th,
.ui.table > tbody > tr > td,
.ui.table > tr > td {
padding: 6px 3px;
padding: 6px;
}
/* use more horizontal padding on first and last items for visuals */
.ui.table > thead > tr > th:first-of-type,
Expand Down

0 comments on commit db8b488

Please sign in to comment.