aboutsummaryrefslogtreecommitdiff
path: root/templates/page.hamlet
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-30 14:50:32 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-30 14:50:32 -0400
commit78b3dada5b056320922cb9f453343ae4d95b0407 (patch)
tree216aaba0b7218ab80866c15f9e8b3fc023724bbf /templates/page.hamlet
parenta9941308434354046fa51d3327c5e05ff080a247 (diff)
better connection close handling
Depending on how the webapp was started up and whether the user clicked on any links in it, window.close() may be disallowed by browser security policy. Also if that fails, display a modal dialog that nicely blackens out the webapp. TODO: avoid Escape closing it. Bootstrap's docs are unclear about how to do that.
Diffstat (limited to 'templates/page.hamlet')
-rw-r--r--templates/page.hamlet7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/page.hamlet b/templates/page.hamlet
index 500424125..919724f87 100644
--- a/templates/page.hamlet
+++ b/templates/page.hamlet
@@ -21,3 +21,10 @@
<div .container-fluid>
<div .row-fluid>
^{content}
+<div #lostconnection .modal .fade>
+ <div .modal-header>
+ <h3>
+ git-annex has shut down
+ <div .modal-body>
+ <p>
+ You can now close this browser window.