Add mailto link to maintainer list (#340)
* Add mailto link to maintainer list Signed-off-by: Matthias Beyer <mail@beyermatthias.de> * Fix: mailto links do not need // Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Co-authored-by: Rok Garbas <rok@garbas.si>
This commit is contained in:
parent
5ee8ca10c6
commit
e35436a9bc
|
@ -372,16 +372,28 @@ viewResultItem channel showInstallDetails show item =
|
|||
|
||||
showMaintainer maintainer =
|
||||
li []
|
||||
[ a
|
||||
[ href <|
|
||||
case maintainer.github of
|
||||
Just github ->
|
||||
"https://github.com/" ++ github
|
||||
[ div []
|
||||
[ a
|
||||
[ href <|
|
||||
case maintainer.github of
|
||||
Just github ->
|
||||
"https://github.com/" ++ github
|
||||
|
||||
Nothing ->
|
||||
"#"
|
||||
Nothing ->
|
||||
"#"
|
||||
]
|
||||
[ text <| Maybe.withDefault "" maintainer.name ++ " <" ++ Maybe.withDefault "" maintainer.email ++ ">" ]
|
||||
, a
|
||||
[ href <|
|
||||
case maintainer.email of
|
||||
Just email ->
|
||||
"mailto:" ++ email
|
||||
|
||||
Nothing ->
|
||||
"#"
|
||||
]
|
||||
[ text "(mail)" ]
|
||||
]
|
||||
[ text <| Maybe.withDefault "" maintainer.name ++ (Maybe.withDefault "" <| Maybe.map (\email -> " <" ++ email ++ ">") maintainer.email) ]
|
||||
]
|
||||
|
||||
showPlatform platform =
|
||||
|
|
Loading…
Reference in a new issue