Skip to content

Commit

Permalink
add exclamation icon
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Aug 9, 2022
1 parent 71f96eb commit 1db68c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integrations/pull_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions public/img/svg/gitea-exclamation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions templates/repo/commit_status.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
1 change: 1 addition & 0 deletions web_src/svg/gitea-exclamation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1db68c7

Please sign in to comment.