diff --git a/templates/repo/settings/webhook/list.tmpl b/templates/repo/settings/webhook/list.tmpl index 2bff27a76..02a3bcad6 100644 --- a/templates/repo/settings/webhook/list.tmpl +++ b/templates/repo/settings/webhook/list.tmpl @@ -41,13 +41,12 @@
{{.Description | Str2html}}
-
{{range .Webhooks}} -
+
{{if eq .LastStatus 1}} - {{svg "octicon-check"}} + {{svg "octicon-check"}} {{else if eq .LastStatus 2}} - {{svg "octicon-alert"}} + {{svg "octicon-alert"}} {{else}} {{svg "octicon-dot-fill"}} {{end}} diff --git a/web_src/less/_admin.less b/web_src/less/_admin.less index 80b7649fb..97c8e0d5c 100644 --- a/web_src/less/_admin.less +++ b/web_src/less/_admin.less @@ -1,4 +1,14 @@ .admin { + &.hooks .list { + > .item { + &:not(:first-child) { + border-top: 1px solid var(--color-secondary); + padding: 1rem; + margin: 15px -1rem -1rem; + } + } + } + .table.segment { padding: 0; font-size: 13px;