diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2011-02-06 16:52:47 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2011-02-06 16:52:47 (GMT) |
commit | d524d2b41cea9003f361a3d3d3d62f5e6c66e015 (patch) | |
tree | 8936822d252d19c2aa6e9a5507de9eb4e81f2c0c | |
parent | 4f820d5d3f463ca3f5461da820ed81ec42f140af (diff) |
word restart request more firmly in general and especially for Mozilla browsers
-rw-r--r-- | templates/index.tmpl | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl index 3c2921a..125d607 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -40,11 +40,27 @@ <div id="gen_key_message" /> </form> #else if $key is None - <p> - You have created a client certificate, but your browser does not use it - yet. Please try reloading this page. It's also possible that - your browser requires a restart in order to use the certificate. - </p> + <div id="restart_msg"> + <p> + You have created a client certificate, but your browser does not use it + yet. Please try reloading this page. If that doesn't help, please + restart your browser. Some browsers are known to require this. + </p> + </div> + <script type="text/javascript"> + <!-- + if (navigator.userAgent.indexOf('Gecko') != -1) { + document.getElementById('restart_msg').innerHTML = + "<h2>Restart required</h2>" + + "<p><em style='color: #ff0000; font-style: normal; " + + "font-weight:bold;'>Please restart your browser.</em>" + + "You have created a client certificate, but your browser does not " + + "use it yet. " + + "Mozilla-based browsers (e.g. Firefox) are known require a " + + "restart.</p>"; + } + //--> + </script> #else if $user is None <p>You are not registered yet.</p> |