mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-25 07:22:48 +00:00
Try Silenced/Active as icons
This commit is contained in:
parent
a67911a295
commit
64a6ad7b5a
@ -83,9 +83,11 @@ alertView alert =
|
|||||||
|
|
||||||
b =
|
b =
|
||||||
if alert.silenced then
|
if alert.silenced then
|
||||||
buttonLink "Silenced" ("#/silences/" ++ toString id) "dark-blue"
|
-- buttonLink "Silenced" ("#/silences/" ++ toString id) "dark-blue"
|
||||||
|
buttonLink "fa-deaf" ("#/silences/" ++ toString id) "dark-blue"
|
||||||
else
|
else
|
||||||
buttonLink "Active" "#/alerts" "dark-red"
|
-- buttonLink "Active" "#/alerts" "dark-red"
|
||||||
|
buttonLink "fa-exclamation-triangle" "#/alerts" "dark-red"
|
||||||
in
|
in
|
||||||
div [ class "f6 mb3" ]
|
div [ class "f6 mb3" ]
|
||||||
[ div [ class "mb1" ]
|
[ div [ class "mb1" ]
|
||||||
@ -100,8 +102,10 @@ alertView alert =
|
|||||||
|
|
||||||
|
|
||||||
buttonLink : String -> String -> String -> Html msg
|
buttonLink : String -> String -> String -> Html msg
|
||||||
buttonLink txt link color =
|
buttonLink icon link color =
|
||||||
a [ class <| "f6 link br1 ba mr1 ph3 pv2 mb2 dib " ++ color, href link ] [ text txt ]
|
a [ class <| "f6 link br1 ba mr1 ph3 pv2 mb2 dib " ++ color, href link ]
|
||||||
|
[ i [ class <| "fa fa-3 " ++ icon ] []
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
alertHeader : ( String, String ) -> Html msg
|
alertHeader : ( String, String ) -> Html msg
|
||||||
|
Loading…
Reference in New Issue
Block a user