diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-29 18:34:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-29 18:34:50 -0400 |
commit | 9219f0baeec3db3d09e3369b4da12723dbca9847 (patch) | |
tree | f8b0fe29ce4366d0456340845b30466b66b9609e /templates | |
parent | ab6e1221ce77039b129d97f9454711bd500dac7c (diff) |
display "paused" when transfer is paused
This makes the buttons in the UI a little clearer. I'd prefer to enable the
barberpole animation for running transfers, but that is jerky looking due
to the way the dashboard is updated.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/dashboard/transfers.hamlet | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/dashboard/transfers.hamlet b/templates/dashboard/transfers.hamlet index 1953f9a3c..da5848432 100644 --- a/templates/dashboard/transfers.hamlet +++ b/templates/dashboard/transfers.hamlet @@ -20,7 +20,10 @@ <small>#{maybe "unknown" Remote.name $ transferRemote info}</small> $with size <- maybe "unknown" (roughSize dataUnits True) $ keySize $ transferKey transfer $if isJust $ startedTime info + $if isrunning info <small .pull-right><b>#{percent} of #{size}</b></small> + $else + <small .pull-right>paused at #{percent} of #{size}</small> $else <small .pull-right>queued (#{size})</small> <div .row-fluid> |