From 1db68c792f400a7a310f8f7e2ac7bf4ce01d77a4 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 9 Aug 2022 21:25:03 +0200 Subject: [PATCH] add exclamation icon --- integrations/pull_status_test.go | 4 ++-- public/img/svg/gitea-exclamation.svg | 1 + templates/repo/commit_status.tmpl | 4 ++-- web_src/svg/gitea-exclamation.svg | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 public/img/svg/gitea-exclamation.svg create mode 100644 web_src/svg/gitea-exclamation.svg diff --git a/integrations/pull_status_test.go b/integrations/pull_status_test.go index 117ee8386b8bd..d38d90169bffa 100644 --- a/integrations/pull_status_test.go +++ b/integrations/pull_status_test.go @@ -58,9 +58,9 @@ func TestPullCreate_CommitStatus(t *testing.T) { statesIcons := map[api.CommitStatusState]string{ api.CommitStatusPending: "octicon-dot-fill", api.CommitStatusSuccess: "octicon-check", - api.CommitStatusError: "octicon-no-entry", + api.CommitStatusError: "gitea-exclamation", api.CommitStatusFailure: "octicon-x", - api.CommitStatusWarning: "octicon-no-entry", + api.CommitStatusWarning: "gitea-exclamation", } testCtx := NewAPITestContext(t, "user1", "repo1") diff --git a/public/img/svg/gitea-exclamation.svg b/public/img/svg/gitea-exclamation.svg new file mode 100644 index 0000000000000..22176010dc9fa --- /dev/null +++ b/public/img/svg/gitea-exclamation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl index 7bf45ccd83189..fbf064527da46 100644 --- a/templates/repo/commit_status.tmpl +++ b/templates/repo/commit_status.tmpl @@ -5,11 +5,11 @@ {{svg "octicon-check" 18 "commit-status icon text green"}} {{end}} {{if eq .State "error"}} - {{svg "octicon-no-entry" 18 "commit-status icon text red"}} + {{svg "gitea-exclamation" 18 "commit-status icon text red"}} {{end}} {{if eq .State "failure"}} {{svg "octicon-x" 18 "commit-status icon text red"}} {{end}} {{if eq .State "warning"}} - {{svg "octicon-no-entry" 18 "commit-status icon text yellow"}} + {{svg "gitea-exclamation" 18 "commit-status icon text yellow"}} {{end}} diff --git a/web_src/svg/gitea-exclamation.svg b/web_src/svg/gitea-exclamation.svg new file mode 100644 index 0000000000000..c83cb4158efc8 --- /dev/null +++ b/web_src/svg/gitea-exclamation.svg @@ -0,0 +1 @@ + \ No newline at end of file