Skip to content

Commit

Permalink
version should not be shown if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Jan 25, 2021
1 parent b208c24 commit b6729c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Page/Packages.elm
Expand Up @@ -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 ]
]
)

Expand Down

0 comments on commit b6729c3

Please sign in to comment.