Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase table cell padding, use icons in admin table headers #26043

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 5px;
}
/* use more horizontal padding on first and last items for visuals */
.ui.table > thead > tr > th:first-of-type,
Expand Down