From dc3e38bd266133b467ea5fda3b697510b4e84928 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 20 Oct 2017 18:49:37 +0200 Subject: [PATCH] search is working again! --- Application.hs | 5 +- Foundation.hs | 20 ++-- Handler/Search.hs | 194 +++++--------------------------- config/routes | 8 +- eidolon.cabal | 7 +- templates/default-layout.hamlet | 4 +- templates/result.hamlet | 10 +- 7 files changed, 48 insertions(+), 200 deletions(-) diff --git a/Application.hs b/Application.hs index 4d0b2a5..6a1b13e 100755 --- a/Application.hs +++ b/Application.hs @@ -48,10 +48,7 @@ import Network.Wai.Middleware.RequestLogger (Destination (Logger), -- Import all relevant handler modules here. -- Don't forget to add new modules to your cabal file! import Handler.Home --- import Handler.Signup import Handler.Login --- import Handler.Activate --- import Handler.Reactivate import Handler.Profile import Handler.Upload import Handler.NewAlbum @@ -68,7 +65,7 @@ import Handler.AdminMediumSettings import Handler.AdminComments import Handler.Tag import Handler.RootFeed --- import Handler.Search +import Handler.Search import Handler.About -- This line actually creates our YesodDispatch instance. It is the second half diff --git a/Foundation.hs b/Foundation.hs index cbf6459..13d59cc 100755 --- a/Foundation.hs +++ b/Foundation.hs @@ -97,16 +97,16 @@ renderLayout widget = do -- value passed to hamletToRepHtml cannot be a widget, this allows -- you to use normal widget features in default-layout. - -- searchWidget <- widgetToPageContent $ [whamlet| - --
- -- - --
- -- - -- - --