summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-01 19:25:54 +0200
committerGitHub <noreply@github.com>2023-05-01 13:25:54 -0400
commitfa506cd5712996b9fac3ab9615ec0ac90fa6a339 (patch)
treece7a5a36eeb63d704a83c2dea4d586834da022f4 /templates
parent3e7101dd64e4cd5d9ecfd4dbe0c991aacf99bf87 (diff)
downloadgitea-fa506cd5712996b9fac3ab9615ec0ac90fa6a339.tar.gz
gitea-fa506cd5712996b9fac3ab9615ec0ac90fa6a339.zip
Remove `font-awesome` and fomantic `icon` module (#24471)
Fixes https://github.com/go-gitea/gitea/issues/10410. This PR removes around 120kB of CSS.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/actions/list.tmpl3
-rw-r--r--templates/repo/issue/labels/edit_delete_label.tmpl2
-rw-r--r--templates/repo/issue/view_content/pull.tmpl6
3 files changed, 5 insertions, 6 deletions
diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl
index c75e81948e..2885aa0fbf 100644
--- a/templates/repo/actions/list.tmpl
+++ b/templates/repo/actions/list.tmpl
@@ -1,7 +1,6 @@
{{template "base/head" .}}
<div class="page-content repository">
{{template "repo/header" .}}
-
<div class="ui container">
<div class="ui stackable grid">
<div class="four wide column">
@@ -12,7 +11,7 @@
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
{{if .ErrMsg}}
<span data-tooltip-content="{{.ErrMsg}}">
- <i class="warning icon red"></i>
+ {{svg "octicon-alert" 16 "text red"}}
</span>
{{end}}
</a>
diff --git a/templates/repo/issue/labels/edit_delete_label.tmpl b/templates/repo/issue/labels/edit_delete_label.tmpl
index 458250f92b..b09e9173de 100644
--- a/templates/repo/issue/labels/edit_delete_label.tmpl
+++ b/templates/repo/issue/labels/edit_delete_label.tmpl
@@ -57,7 +57,7 @@
{{.locale.Tr "cancel"}}
</button>
<button class="ui primary small approve button">
- <i class="save icon"></i>
+ {{svg "fontawesome-save"}}
{{.locale.Tr "save"}}
</button>
</div>
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index 5e405c9d2c..aa9b240736 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -249,7 +249,7 @@
{{$.locale.Tr "repo.pulls.require_signed_wont_sign"}}
</div>
<div class="item">
- <i class="icon unlock"></i>
+ <i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
</div>
{{end}}
@@ -274,12 +274,12 @@
{{end}}
{{if .WillSign}}
<div class="item">
- <i class="icon lock green"></i>
+ <i class="icon icon-octicon">{{svg "octicon-lock" 16 "text green"}}</i>
{{$.locale.Tr "repo.signing.will_sign" .SigningKey}}
</div>
{{else if .IsSigned}}
<div class="item">
- <i class="icon unlock"></i>
+ <i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
</div>
{{end}}