diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-09-08 18:07:20 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-09-08 18:07:20 +0200 |
commit | bd56619e7aa798fe899a04d2f47e450344720215 (patch) | |
tree | d6cf00df66bf48b247dab691def8e57fba03736f /core | |
parent | 3db2b114352ffc066999ece45a8a22fff66e5b8f (diff) | |
download | nextcloud-server-bd56619e7aa798fe899a04d2f47e450344720215.tar.gz nextcloud-server-bd56619e7aa798fe899a04d2f47e450344720215.zip |
also add no-JavaScript notice to log in and sharing pages because they do not work without JS either
Diffstat (limited to 'core')
-rw-r--r-- | core/css/styles.css | 4 | ||||
-rw-r--r-- | core/templates/layout.base.php | 1 | ||||
-rw-r--r-- | core/templates/layout.guest.php | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index a7f63e8492e..ff8cdba55b6 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -39,7 +39,7 @@ body { #nojavascript { - position: absolute; + position: fixed; top: 0; bottom: 0; z-index: 9000; @@ -54,7 +54,7 @@ body { display: block; position: relative; width: 50%; - top: 30%; + top: 35%; margin: 0px auto; } #nojavascript a { diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index 127e99be84d..009cfe21c3f 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -31,6 +31,7 @@ <?php endforeach; ?> </head> <body id="body-public"> + <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript> <?php print_unescaped($_['content']); ?> </body> </html> diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 00950802fec..64546dcc01c 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -33,6 +33,7 @@ <?php endforeach; ?> </head> <body id="body-login"> + <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript> <div class="wrapper"><!-- for sticky footer --> <div class="v-align"><!-- vertically centred box --> <header><div id="header"> |