summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorFarhan Kathawala <farhank@stanford.edu>2016-06-13 17:57:16 -0700
committerJoey Hess <joeyh@joeyh.name>2016-06-13 21:52:19 -0400
commit922371d5df4a5cadb2800fbb23bebb57e9ca7cf7 (patch)
tree7c0e6061826bd0fe589cf3602f2b4995903fa450 /templates
parent35dbe35007d99a422b4f4ea08f6f6a94294d48ff (diff)
Fixed bug: webapp should notice when remote deletion cannot complete due to not syncing
Diffstat (limited to 'templates')
-rw-r--r--templates/repolist.hamlet5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/repolist.hamlet b/templates/repolist.hamlet
index 72a194b0ab..77dbbfaeda 100644
--- a/templates/repolist.hamlet
+++ b/templates/repolist.hamlet
@@ -60,6 +60,11 @@
<a href="@{SyncNowRepositoryR $ asUUID repoid}">
<span .glyphicon .glyphicon-refresh>
\ Sync now
+ $if notSyncing actions
+ <a title="Not allowed when syncing is disabled." href="#" style="color: #999;">
+ <span .glyphicon .glyphicon-trash>
+ \ Delete
+ $else
<a href="@{DeleteRepositoryR $ asUUID repoid}">
<span .glyphicon .glyphicon-trash>
\ Delete