some hamlet versions do not support nested tuples
This commit is contained in:
parent
2bd2703eab
commit
bac84ecbcd
3 changed files with 6 additions and 5 deletions
|
@ -118,8 +118,8 @@ repoListDisplay reposelector = do
|
|||
where
|
||||
ident = "repolist"
|
||||
|
||||
-- (num, name, (uuid, actions))
|
||||
type RepoList = [(String, String, (UUID, Actions))]
|
||||
-- (num, name, uuid, actions)
|
||||
type RepoList = [(String, String, UUID, Actions)]
|
||||
|
||||
{- A numbered list of known repositories,
|
||||
- with actions that can be taken on them. -}
|
||||
|
@ -179,10 +179,11 @@ repoList reposelector
|
|||
val iscloud r = Just (iscloud, (u, DisabledRepoActions $ r u))
|
||||
list l = liftAnnex $ do
|
||||
let l' = nubBy (\x y -> fst x == fst y) l
|
||||
zip3
|
||||
l'' <- zip3
|
||||
<$> pure counter
|
||||
<*> Remote.prettyListUUIDs (map fst l')
|
||||
<*> pure l'
|
||||
return $ map (\(num, name, (uuid, actions)) -> (num, name, uuid, actions)) l''
|
||||
counter = map show ([1..] :: [Int])
|
||||
|
||||
getEnableSyncR :: UUID -> Handler ()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
\ with these repositories:
|
||||
<table .table .table-striped .table-condensed>
|
||||
<tbody>
|
||||
$forall (num, name, _) <- repolist
|
||||
$forall (num, name, _, _) <- repolist
|
||||
<tr>
|
||||
<td>
|
||||
#{num}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
Repositories
|
||||
<table .table .table-condensed>
|
||||
<tbody #costsortable>
|
||||
$forall (_num, name, (uuid, actions)) <- repolist
|
||||
$forall (_num, name, uuid, actions) <- repolist
|
||||
<tr .repoline ##{"costsortable_" ++ fromUUID uuid}>
|
||||
<td .handle>
|
||||
<i .icon-resize-vertical></i>
|
||||
|
|
Loading…
Add table
Reference in a new issue