2013-03-15 04:34:42 +00:00
|
|
|
<div ##{ident}>
|
|
|
|
<h2>Transfers
|
2013-03-19 16:51:22 +00:00
|
|
|
$if transfersrunning
|
2012-07-29 07:23:17 +00:00
|
|
|
$forall (transfer, info) <- transfers
|
|
|
|
$with percent <- maybe "unknown" (showPercentage 0) $ percentComplete transfer info
|
|
|
|
<div .row-fluid>
|
2012-08-08 18:14:19 +00:00
|
|
|
<div .span10>
|
|
|
|
<div .row-fluid>
|
2013-03-20 22:21:43 +00:00
|
|
|
<h3 .forcewrap>
|
2012-08-08 18:14:19 +00:00
|
|
|
$maybe file <- associatedFile info
|
2013-03-20 22:21:43 +00:00
|
|
|
#{file}
|
2012-08-08 18:14:19 +00:00
|
|
|
$nothing
|
2013-03-20 22:21:43 +00:00
|
|
|
#{key2file $ transferKey transfer}
|
2012-08-08 18:14:19 +00:00
|
|
|
$case transferDirection transfer
|
|
|
|
$of Upload
|
|
|
|
→
|
|
|
|
$of Download
|
|
|
|
←
|
2012-10-17 18:45:58 +00:00
|
|
|
<small>
|
2013-11-07 22:02:00 +00:00
|
|
|
<a href="@{EditRepositoryR $ RepoUUID $ transferUUID transfer}">
|
2012-10-17 18:45:58 +00:00
|
|
|
#{maybe "unknown" Remote.name $ transferRemote info}
|
2012-08-08 18:14:19 +00:00
|
|
|
$with size <- maybe "unknown" (roughSize dataUnits True) $ keySize $ transferKey transfer
|
|
|
|
$if isJust $ startedTime info
|
2012-08-29 22:34:50 +00:00
|
|
|
$if isrunning info
|
2012-08-08 18:14:19 +00:00
|
|
|
<small .pull-right><b>#{percent} of #{size}</b></small>
|
2012-08-29 22:34:50 +00:00
|
|
|
$else
|
|
|
|
<small .pull-right>paused at #{percent} of #{size}</small>
|
2012-08-08 18:14:19 +00:00
|
|
|
$else
|
|
|
|
<small .pull-right>queued (#{size})</small>
|
|
|
|
<div .row-fluid>
|
|
|
|
<div .progress .progress-striped>
|
|
|
|
<div .bar style="width: #{percent};">
|
|
|
|
<div .btn-group .span2>
|
2012-08-10 22:50:21 +00:00
|
|
|
$if isrunning info
|
2012-09-27 16:55:00 +00:00
|
|
|
^{actionButton (PauseTransferR transfer) Nothing (Just "pause") "btn" "icon-pause"}
|
2012-08-10 22:50:21 +00:00
|
|
|
$else
|
2012-09-27 16:55:00 +00:00
|
|
|
^{actionButton (StartTransferR transfer) Nothing (Just "continue") "btn" "icon-play"}
|
|
|
|
^{actionButton (CancelTransferR transfer) Nothing (Just "cancel") "btn" "icon-remove"}
|
2013-04-09 02:54:02 +00:00
|
|
|
$if scanrunning
|
|
|
|
<img src="@{StaticR activityicon_gif}" alt=""> #
|
|
|
|
Scanning for files to transfer
|
2013-03-19 16:51:22 +00:00
|
|
|
$else
|
2013-04-09 02:54:02 +00:00
|
|
|
$if (not transfersrunning)
|
2013-03-19 16:51:22 +00:00
|
|
|
<i>
|
|
|
|
(No file transfers running)
|