avoid listing glacier when prompting to set up a transfer repository after xmpp

This commit is contained in:
Joey Hess 2013-03-07 13:01:18 -04:00
parent 265e440d22
commit 6e7a43ab61
4 changed files with 10 additions and 9 deletions

View file

@ -57,8 +57,8 @@ introDisplay ident = do
makeMiscRepositories :: Widget
makeMiscRepositories = $(widgetFile "configurators/repositories/misc")
makeCloudRepositories :: Widget
makeCloudRepositories = $(widgetFile "configurators/repositories/cloud")
makeCloudRepositories :: Bool -> Widget
makeCloudRepositories onlyTransfer = $(widgetFile "configurators/repositories/cloud")
{- Lists known repositories, followed by options to add more. -}
getRepositoriesR :: Handler RepHtml

View file

@ -30,4 +30,4 @@
^{cloudrepolist}
<h2>
Add a cloud repository
^{makeCloudRepositories}
^{makeCloudRepositories True}

View file

@ -11,4 +11,4 @@
<h2>
Store your data in the cloud
^{makeCloudRepositories}
^{makeCloudRepositories False}

View file

@ -16,11 +16,12 @@
<p>
Good choice for professional quality storage.
<h3>
<a href="@{AddGlacierR}">
<i .icon-plus-sign></i> Amazon Glacier
<p>
Low cost offline data archival.
$if not onlyTransfer
<h3>
<a href="@{AddGlacierR}">
<i .icon-plus-sign></i> Amazon Glacier
<p>
Low cost offline data archival.
<h3>
<a href="@{AddSshR}">