diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2021-01-04 13:18:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 13:18:12 +0100 |
commit | 21fbee150315f3d07032e89b449674547b6682a3 (patch) | |
tree | 04ff1317bad0dba31bd99ae4cff1532289b6306e /templates | |
parent | 4092c044e0ccd0f3b6c9224c34fb7d1265851f4b (diff) | |
download | gitea-21fbee150315f3d07032e89b449674547b6682a3.tar.gz gitea-21fbee150315f3d07032e89b449674547b6682a3.zip |
Various UI fixes (#14239)
* Fix #14238
* Fix #14235
* Fix #14237
* Fix #14234
* Use octicon to show private status of repo in admin dashboard
* Fix #14232
* Fix #14236
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/repo/list.tmpl | 9 | ||||
-rw-r--r-- | templates/explore/organizations.tmpl | 2 | ||||
-rw-r--r-- | templates/user/settings/grants_oauth2.tmpl | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 5f8db35853..17a6871b3a 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -22,7 +22,6 @@ {{.i18n.Tr "admin.repos.name"}} {{SortArrow "alphabetically" "reversealphabetically" $.SortType false}} </th> - <th>{{.i18n.Tr "admin.repos.private"}}</th> <th>{{.i18n.Tr "admin.repos.watches"}}</th> <th data-sortt-asc="moststars" data-sortt-desc="feweststars"> {{.i18n.Tr "admin.repos.stars"}} @@ -51,8 +50,12 @@ <span class="text gold">{{svg "octicon-lock"}}</span> {{end}} </td> - <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td> - <td>{{if .IsPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> + <td> + <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a> + {{if .IsPrivate}} + <span class="text gold">{{svg "octicon-lock"}}</span> + {{end}} + </td> <td>{{.NumWatches}}</td> <td>{{.NumStars}}</td> <td>{{.NumForks}}</td> diff --git a/templates/explore/organizations.tmpl b/templates/explore/organizations.tmpl index 8785ac84db..b039c1ad2a 100644 --- a/templates/explore/organizations.tmpl +++ b/templates/explore/organizations.tmpl @@ -12,7 +12,7 @@ <span class="header"> <a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}} {{if .Visibility.IsPrivate}} - <span class="text gold">{{svg "octicon-lock"}}</span> + <span class="ui basic label">{{$.i18n.Tr "repo.desc.private"}}</span> {{end}} </span> <div class="description"> diff --git a/templates/user/settings/grants_oauth2.tmpl b/templates/user/settings/grants_oauth2.tmpl index 0b635ae0a9..cf24252ede 100644 --- a/templates/user/settings/grants_oauth2.tmpl +++ b/templates/user/settings/grants_oauth2.tmpl @@ -15,7 +15,9 @@ {{$.i18n.Tr "settings.revoke_key"}} </button> </div> - {{svg "octicon-key"}} + <div class="left floated content"> + {{svg "octicon-key"}} + </div> <div class="content"> <strong>{{$grant.Application.Name}}</strong> <div class="activity meta"> |