fix intro display when there is 1 remote
This commit is contained in:
parent
a1bd5b1fa0
commit
96c7a5ce32
2 changed files with 1 additions and 4 deletions
|
@ -47,11 +47,8 @@ introDisplay ident = do
|
||||||
repolist <- lift $ repoList True False
|
repolist <- lift $ repoList True False
|
||||||
let n = length repolist
|
let n = length repolist
|
||||||
let numrepos = show n
|
let numrepos = show n
|
||||||
let notenough = n < enough
|
|
||||||
$(widgetFile "configurators/intro")
|
$(widgetFile "configurators/intro")
|
||||||
lift $ modifyWebAppState $ \s -> s { showIntro = False }
|
lift $ modifyWebAppState $ \s -> s { showIntro = False }
|
||||||
where
|
|
||||||
enough = 2
|
|
||||||
|
|
||||||
{- Lists known repositories, followed by options to add more. -}
|
{- Lists known repositories, followed by options to add more. -}
|
||||||
getRepositoriesR :: Handler RepHtml
|
getRepositoriesR :: Handler RepHtml
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
git-annex is watching over your files in <small><tt>#{reldir}</tt></small>
|
git-annex is watching over your files in <small><tt>#{reldir}</tt></small>
|
||||||
<p>
|
<p>
|
||||||
It will automatically notice changes, and keep files in sync #
|
It will automatically notice changes, and keep files in sync #
|
||||||
$if notenough
|
$if (null repolist)
|
||||||
with repositories elsewhere ...
|
with repositories elsewhere ...
|
||||||
<h2>
|
<h2>
|
||||||
But no other repositories are set up yet.
|
But no other repositories are set up yet.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue