Skip to content

Commit

Permalink
Add package / request package link when no results
Browse files Browse the repository at this point in the history
closes #235
  • Loading branch information
turboMaCk committed Dec 27, 2020
1 parent 153674a commit 27eb47f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Search.elm
Expand Up @@ -512,7 +512,13 @@ view { toRoute, categoryName } title model viewSuccess outMsg =

RemoteData.Success result ->
if result.hits.total.value == 0 then
[ h4 [] [ text <| "No " ++ categoryName ++ " found!" ] ]
[ h4 [] [ text <| "No " ++ categoryName ++ " found!" ]
, text "How to "
, Html.a [ href "https://nixos.org/manual/nixpkgs/stable/#chap-quick-start"] [ text "add" ]
, text " or "
, a [ href "https://github.com/NixOS/nixpkgs/issues/new?assignees=&labels=0.kind%3A+packaging+request&template=packaging_request.md&title="] [ text "request" ]
, text " package to nixpkgs?"
]

else
[ p []
Expand Down

0 comments on commit 27eb47f

Please sign in to comment.