[Pkg-owncloud-commits] [owncloud] 44/258: also add no-JavaScript notice to log in and sharing pages because they do not work without JS either

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit b609d36e3cd8f0067b6764afd6715b264c68ef0d
Author: Jan-Christoph Borchardt <hey at jancborchardt.net>
Date:   Mon Sep 8 18:07:20 2014 +0200

    also add no-JavaScript notice to log in and sharing pages because they do not work without JS either
---
 core/css/styles.css             | 4 ++--
 core/templates/layout.base.php  | 1 +
 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 8dc9bb4..906e38b 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 b99f603..66abcce 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -32,6 +32,7 @@
 	</head>
 	<?php flush(); ?>
 	<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 c4b69a9..b802a24 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -34,6 +34,7 @@
 	</head>
 	<?php flush(); ?>
 	<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">

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list