diff options
author | Farhan Kathawala <farhank@stanford.edu> | 2016-06-13 17:57:16 -0700 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-06-13 21:52:19 -0400 |
commit | 922371d5df4a5cadb2800fbb23bebb57e9ca7cf7 (patch) | |
tree | 7c0e6061826bd0fe589cf3602f2b4995903fa450 | |
parent | 35dbe35007d99a422b4f4ea08f6f6a94294d48ff (diff) |
Fixed bug: webapp should notice when remote deletion cannot complete due to not syncing
-rw-r--r-- | templates/repolist.hamlet | 5 |
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 |