Add package / request package link when no results (#256)

closes #235
This commit is contained in:
Marek Fajkus 2020-12-28 23:23:33 +01:00 committed by GitHub
parent aa366aa31c
commit 01d682f980
Failed to generate hash of commit

View file

@ -529,7 +529,13 @@ view { toRoute, categoryName } title model viewSuccess outMsg =
RemoteData.Success result -> RemoteData.Success result ->
if result.hits.total.value == 0 then 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 else
[ p [] [ p []