From 96c7a5ce32cbeebfe0642bb4e531e54b7fefe4ba Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 30 Oct 2012 18:21:13 -0400 Subject: [PATCH] fix intro display when there is 1 remote --- Assistant/WebApp/Configurators.hs | 3 --- templates/configurators/intro.hamlet | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Assistant/WebApp/Configurators.hs b/Assistant/WebApp/Configurators.hs index 449c401734..cc72311366 100644 --- a/Assistant/WebApp/Configurators.hs +++ b/Assistant/WebApp/Configurators.hs @@ -47,11 +47,8 @@ introDisplay ident = do repolist <- lift $ repoList True False let n = length repolist let numrepos = show n - let notenough = n < enough $(widgetFile "configurators/intro") lift $ modifyWebAppState $ \s -> s { showIntro = False } - where - enough = 2 {- Lists known repositories, followed by options to add more. -} getRepositoriesR :: Handler RepHtml diff --git a/templates/configurators/intro.hamlet b/templates/configurators/intro.hamlet index 544b039a79..f3651c4cb9 100644 --- a/templates/configurators/intro.hamlet +++ b/templates/configurators/intro.hamlet @@ -4,7 +4,7 @@ git-annex is watching over your files in #{reldir}

It will automatically notice changes, and keep files in sync # - $if notenough + $if (null repolist) with repositories elsewhere ...

But no other repositories are set up yet.