diff options
author | silverwind <me@silverwind.io> | 2020-12-09 20:03:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 14:03:19 -0500 |
commit | c85bb6263503ebd335863f413214a775973a1fac (patch) | |
tree | 4264266101a847d0895d6c9ad6442f9cb240b1db /templates/admin/repo | |
parent | 6edfa6bc88ed73fc5a31f1b2fe9f5587c932ada7 (diff) | |
download | gitea-c85bb6263503ebd335863f413214a775973a1fac.tar.gz gitea-c85bb6263503ebd335863f413214a775973a1fac.zip |
Replace more icons with SVG, repo search tweaks (#13860)
* Replace more icons with SVG
- Replace remaining icons on admin page with SVG
- Fix vertical menu background on arc-green
- Minor improvments to frontpage repo search
- More icon replacements here and there
* fix integration
* whitespace tweak
* add comment
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/admin/repo')
-rw-r--r-- | templates/admin/repo/list.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/repo/unadopted.tmpl | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index fbadfeea78..5f8db35853 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -52,14 +52,14 @@ {{end}} </td> <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td> - <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td> + <td>{{if .IsPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> <td>{{.NumWatches}}</td> <td>{{.NumStars}}</td> <td>{{.NumForks}}</td> <td>{{.NumIssues}}</td> <td>{{SizeFmt .Size}}</td> <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td> - <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a></td> + <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Paginater.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}">{{svg "octicon-trashcan"}}</a></td> </tr> {{end}} </tbody> diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index 26c91c3155..206ae91f05 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -30,7 +30,7 @@ <div class="right floated content"> <button class="ui button submit tiny green adopt show-modal" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{$.i18n.Tr "repo.adopt_preexisting_label"}}</span></button> <div class="ui basic modal" id="adopt-unadopted-modal-{{$dirI}}"> - <i class="close icon"></i> + {{svg "octicon-x" 16 "close inside"}} <div class="header"> <span class="label">{{$.i18n.Tr "repo.adopt_preexisting"}}</span> </div> @@ -43,11 +43,11 @@ <input type="hidden" name="action" value="adopt"> <div class="actions"> <div class="ui red basic inverted cancel button"> - <i class="remove icon"></i> + {{svg "octicon-trashcan" 16 "mr-2"}} {{$.i18n.Tr "modal.no"}} </div> <button class="ui green basic inverted ok button"> - <i class="checkmark icon"></i> + {{svg "octicon-check" 16 "mr-2"}} {{$.i18n.Tr "modal.yes"}} </button> </div> @@ -55,7 +55,7 @@ </div> <button class="ui button submit tiny red delete show-modal" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{$.i18n.Tr "repo.delete_preexisting_label"}}</span></button> <div class="ui basic modal" id="delete-unadopted-modal-{{$dirI}}"> - <i class="close icon"></i> + {{svg "octicon-x" 16 "close inside"}} <div class="header"> <span class="label">{{$.i18n.Tr "repo.delete_preexisting"}}</span> </div> @@ -68,11 +68,11 @@ <input type="hidden" name="action" value="delete"> <div class="actions"> <div class="ui red basic inverted cancel button"> - <i class="remove icon"></i> + {{svg "octicon-trashcan" 16 "mr-2"}} {{$.i18n.Tr "modal.no"}} </div> <button class="ui green basic inverted ok button"> - <i class="checkmark icon"></i> + {{svg "octicon-check" 16 "mr-2"}} {{$.i18n.Tr "modal.yes"}} </button> </div> |