[Pkg-owncloud-commits] [owncloud] 22/50: introduce no-javascript message, manual backport of #6202 and #10944, fix #10841
David Prévot
taffit at moszumanska.debian.org
Fri Oct 17 03:12:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v6.0.6RC1
in repository owncloud.
commit c3002b3053563eaf6aeafc4cea327cf455513bc3
Author: Jan-Christoph Borchardt <hey at jancborchardt.net>
Date: Thu Sep 11 16:09:36 2014 +0200
introduce no-javascript message, manual backport of #6202 and #10944, fix #10841
---
core/css/styles.css | 31 +++++++++++++++++++++++++++++++
core/templates/layout.base.php | 1 +
core/templates/layout.guest.php | 1 +
core/templates/layout.user.php | 1 +
4 files changed, 34 insertions(+)
diff --git a/core/css/styles.css b/core/css/styles.css
index 358faf5..bd58d34 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -58,6 +58,37 @@ body { background:#fefefe; font:normal .8em/1.6em "Helvetica Neue",Helvetica,Ari
opacity: 1;
}
+
+#nojavascript {
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ height: 100%;
+ width: 100%;
+ z-index: 9000;
+ text-align: center;
+ background-color: rgba(0,0,0,0.5);
+ color: #fff;
+ line-height: 125%;
+ font-size: 24px;
+}
+#nojavascript div {
+ display: block;
+ position: relative;
+ width: 50%;
+ top: 35%;
+ margin: 0px auto;
+}
+#nojavascript a {
+ color: #fff;
+ border-bottom: 2px dotted #fff;
+}
+#nojavascript a:hover,
+#nojavascript a:focus {
+ color: #ddd;
+}
+
+
/* INPUTS */
input[type="text"],
input[type="password"],
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index bae52a7..c38db1b 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -32,6 +32,7 @@
</head>
<body>
+ <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 6a96b17..ba75e3a 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -34,6 +34,7 @@
</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 -->
<header><div id="header">
<img src="<?php print_unescaped(image_path('', 'logo.svg')); ?>" class="svg" alt="<?php p($theme->getName()); ?>" />
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 9e1d802..21ad624 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -37,6 +37,7 @@
</head>
<body id="<?php p($_['bodyid']);?>">
+ <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 id="notification-container">
<div id="notification"></div>
<?php if ($_['updateAvailable']): ?>
--
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