Skip to content

Commit b6729c3

Browse files
committedJan 25, 2021
version should not be shown if it is empty
1 parent b208c24 commit b6729c3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
 

‎src/Page/Packages.elm

+9-2
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,18 @@ viewResultItem channel showNixOSDetails show item =
381381
|> List.intersperse (text ", ")
382382
|> (\x -> [ li [] (List.append [ text "Licenses: " ] x) ])
383383
)
384+
|> List.append
385+
(if item.source.pversion == "" then
386+
[]
387+
388+
else
389+
[ text "Version: "
390+
, li [] [ text item.source.pversion ]
391+
]
392+
)
384393
|> List.append
385394
[ text "Name: "
386395
, li [] [ text item.source.pname ]
387-
, text "Version: "
388-
, li [] [ text item.source.pversion ]
389396
]
390397
)
391398

0 commit comments

Comments
 (0)