summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-10 18:50:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-10 18:50:21 -0400
commit37eed5d8d0a3affad6a6a7d0cbbfb1c1e706e635 (patch)
treecfc70eb043de6d6932beb3b17aace4e03291accb /templates
parent8ba983065324cc850ee25de9a537fb7f29ef4bea (diff)
fix button display for paused transfer
Diffstat (limited to 'templates')
-rw-r--r--templates/dashboard/transfers.hamlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/dashboard/transfers.hamlet b/templates/dashboard/transfers.hamlet
index 6ace2ae84..1953f9a3c 100644
--- a/templates/dashboard/transfers.hamlet
+++ b/templates/dashboard/transfers.hamlet
@@ -27,8 +27,8 @@
<div .progress .progress-striped>
<div .bar style="width: #{percent};">
<div .btn-group .span2>
- $if isNothing (startedTime info)
- ^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"}
- $else
+ $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"}