Skip to content

Commit

Permalink
fix last package version displayed in Search page
Browse files Browse the repository at this point in the history
  • Loading branch information
rlefevre committed Apr 6, 2020
1 parent 21a035f commit 3972ba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Page/Search.elm
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,16 @@ viewEntryHelp ({ author, project, summary } as entry) =
, text project
]
]
, viewExactVersions entry
, viewVersions entry
]
, p [ class "pkg-summary-desc" ] [ text summary ]
]


viewExactVersions : Entry.Entry -> Html msg
viewExactVersions entry =
viewVersions : Entry.Entry -> Html msg
viewVersions entry =
span [ class "pkg-summary-hints" ] <|
case entry.versions of
case List.reverse entry.versions of
[ v ] ->
[ a
[ href (Href.toVersion entry.author entry.project (Just v) Nothing) ]
Expand Down

0 comments on commit 3972ba6

Please sign in to comment.