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
|
2014-04-20 10:42:31 +00:00
|
|
|
<div .row>
|
|
|
|
<div .col-sm-10>
|
2014-04-30 14:38:37 +00:00
|
|
|
<h3 .forcewrap .small-margin-top .tiny-margin-bottom>
|
2017-03-10 17:12:24 +00:00
|
|
|
#{desc transfer info}
|
2014-04-30 14:38:37 +00:00
|
|
|
$case transferDirection transfer
|
|
|
|
$of Upload
|
|
|
|
→
|
|
|
|
$of Download
|
|
|
|
←
|
|
|
|
<small>
|
|
|
|
<a href="@{EditRepositoryR $ RepoUUID $ transferUUID transfer}">
|
|
|
|
#{maybe "unknown" Remote.name $ transferRemote info}
|
|
|
|
$with size <- maybe "unknown" (roughSize dataUnits True) $ keySize $ transferKey transfer
|
|
|
|
$if isJust $ startedTime info
|
|
|
|
$if isrunning info
|
|
|
|
<span .pull-right><b>#{percent} of #{size}</b>
|
2012-08-08 18:14:19 +00:00
|
|
|
$else
|
2014-04-30 14:38:37 +00:00
|
|
|
<span .pull-right>paused at #{percent} of #{size}
|
|
|
|
$else
|
|
|
|
<span .pull-right>queued (#{size})
|
|
|
|
<div .progress .progress-striped .small-margin-bottom>
|
|
|
|
<div .progress-bar style="width: #{percent};">
|
|
|
|
<div .btn-group .col-sm-2 .small-margin-top>
|
2012-08-10 22:50:21 +00:00
|
|
|
$if isrunning info
|
2014-04-30 14:38:37 +00:00
|
|
|
^{actionButton (PauseTransferR transfer) Nothing (Just "pause") "btn btn-default btn-sm" "glyphicon-pause"}
|
2012-08-10 22:50:21 +00:00
|
|
|
$else
|
2014-04-30 14:38:37 +00:00
|
|
|
^{actionButton (StartTransferR transfer) Nothing (Just "continue") "btn btn-default btn-sm" "glyphicon-play"}
|
|
|
|
^{actionButton (CancelTransferR transfer) Nothing (Just "cancel") "btn btn-default btn-sm" "glyphicon-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)
|