From 01d682f980acb41a40272393f271f2d807caf019 Mon Sep 17 00:00:00 2001 From: Marek Fajkus Date: Mon, 28 Dec 2020 23:23:33 +0100 Subject: [PATCH] Add package / request package link when no results (#256) closes #235 --- src/Search.elm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Search.elm b/src/Search.elm index d668c68..6b634ab 100644 --- a/src/Search.elm +++ b/src/Search.elm @@ -529,7 +529,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 []