{- git-annex assistant webapp upgrade UI - - Copyright 2013 Joey Hess - - Licensed under the GNU AGPL version 3 or higher. -} {-# LANGUAGE QuasiQuotes, TemplateHaskell, OverloadedStrings #-} module Assistant.WebApp.Configurators.Upgrade where import Assistant.WebApp.Common import Types.Distribution import Utility.HumanTime import Data.Time.Clock getConfigUpgradeR :: GitAnnexDistribution -> Handler Html getConfigUpgradeR d = page "Upgrade git-annex" (Just Configuration) $ do now <- liftIO getCurrentTime let upgradeage = Duration $ floor $ now `diffUTCTime` distributionReleasedate d $(widgetFile "configurators/upgrade")