Try Silenced/Active as icons

This commit is contained in:
stuart nelson 2017-01-04 22:47:55 -05:00
parent a67911a295
commit 64a6ad7b5a

View File

@ -83,9 +83,11 @@ alertView alert =
b =
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
buttonLink "Active" "#/alerts" "dark-red"
-- buttonLink "Active" "#/alerts" "dark-red"
buttonLink "fa-exclamation-triangle" "#/alerts" "dark-red"
in
div [ class "f6 mb3" ]
[ div [ class "mb1" ]
@ -100,8 +102,10 @@ alertView alert =
buttonLink : String -> String -> String -> Html msg
buttonLink txt link color =
a [ class <| "f6 link br1 ba mr1 ph3 pv2 mb2 dib " ++ color, href link ] [ text txt ]
buttonLink icon link color =
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