version should not be shown if it is empty (#278)
This commit is contained in:
parent
b208c24872
commit
69efbb60de
|
@ -381,11 +381,18 @@ viewResultItem channel showNixOSDetails show item =
|
|||
|> List.intersperse (text ", ")
|
||||
|> (\x -> [ li [] (List.append [ text "Licenses: " ] x) ])
|
||||
)
|
||||
|> List.append
|
||||
(if item.source.pversion == "" then
|
||||
[]
|
||||
|
||||
else
|
||||
[ text "Version: "
|
||||
, li [] [ text item.source.pversion ]
|
||||
]
|
||||
)
|
||||
|> List.append
|
||||
[ text "Name: "
|
||||
, li [] [ text item.source.pname ]
|
||||
, text "Version: "
|
||||
, li [] [ text item.source.pversion ]
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue