]> source.dussan.org Git - gitea.git/commitdiff
Replace a few fontawesome icons with svg (#23602)
authorsilverwind <me@silverwind.io>
Tue, 21 Mar 2023 01:42:02 +0000 (02:42 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Mar 2023 01:42:02 +0000 (21:42 -0400)
Replaced a few icons with SVG. The only ones left are some in actions
(idk why new code introduces legacy icons) and a few dropdown icons.

templates/org/team/repositories.tmpl
templates/repo/editor/edit.tmpl
templates/repo/editor/patch.tmpl
templates/user/auth/webauthn.tmpl

index 0391a762faf229e616d38290ff7dd3360c3558a9..c8651761eb130d4ae67aa0bdc874acbb31778b72 100644 (file)
@@ -77,7 +77,7 @@
 
 <div class="ui small basic addall modal">
        <div class="ui icon header">
-               <i class="globe icon"></i>
+               {{svg "octicon-globe"}}
                {{.locale.Tr "org.teams.add_all_repos_title"}}
        </div>
        <div class="content">
index 431033e18e8a490afd418659f51e2bba64dcd869..19c5cb007a90028dd74aa9e8bfbfc2caf4f0b47a 100644 (file)
@@ -58,7 +58,7 @@
 
        <div class="ui small basic modal" id="edit-empty-content-modal">
                <div class="ui icon header">
-                       <i class="file icon"></i>
+                       {{svg "octicon-file"}}
                        {{.locale.Tr "repo.editor.commit_empty_file_header"}}
                </div>
                <div class="center content">
                </div>
                <div class="actions">
                        <button class="ui red basic cancel inverted button">
-                               <i class="remove icon"></i>
+                               {{svg "octicon-x"}}
                                {{.locale.Tr "repo.editor.cancel"}}
                        </button>
                        <button class="ui green basic ok inverted button">
-                               <i class="save icon"></i>
+                               {{svg "fontawesome-save"}}
                                {{.locale.Tr "repo.editor.commit_changes"}}
                        </button>
                </div>
index 75a8b5d687d9a3d4f73f2540213c96b9597e7970..97637027bbcaa905cefdcf54c8d3e7a2d806fb0f 100644 (file)
@@ -38,7 +38,7 @@
 
        <div class="ui small basic modal" id="edit-empty-content-modal">
                <div class="ui icon header">
-                       <i class="file icon"></i>
+                       {{svg "octicon-file"}}
                        {{.locale.Tr "repo.editor.commit_empty_file_header"}}
                </div>
                <div class="center content">
index 304d199da21aa3fef55ae3f50c34f647af5b3825..ea773d2566c5c5e6e43a46835a1dc65809781e6a 100644 (file)
@@ -6,7 +6,7 @@
                                {{.locale.Tr "twofa"}}
                                </h3>
                                <div class="ui attached segment">
-                                       <i class="huge key icon"></i>
+                                       {{svg "octicon-key" 56}}
                                        <h3>{{.locale.Tr "webauthn_insert_key"}}</h3>
                                        {{template "base/alert" .}}
                                        <p>{{.locale.Tr "webauthn_sign_in"}}</p>