$if null transfers $else

Transfers $forall (transfer, info) <- transfers $with percent <- maybe "unknown" (showPercentage 0) $ percentComplete transfer info

$maybe file <- associatedFile info #{file} $nothing #{key2file $ transferKey transfer} $case transferDirection transfer $of Upload → $of Download ← #{maybe "unknown" Remote.name $ transferRemote info} $with size <- maybe "unknown" (roughSize dataUnits True) $ keySize $ transferKey transfer $if isJust $ startedTime info #{percent} of #{size} $else queued (#{size})
$if isrunning info ^{actionButton (PauseTransferR transfer) Nothing "btn" "icon-pause"} $else ^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"} ^{actionButton (CancelTransferR transfer) Nothing "btn" "icon-remove"}