ref: refs/heads/backgroud_patches_bnc550934
commit 5809b0e3104e494aea9be0d9e8fe100f47778fdb
Author: Ladislav Slezak
Date: Mon Nov 16 18:33:45 2009 +0100
added JavaScript off error header
similar to the unsupported browser header (bnc#555869)
---
webclient/app/views/layouts/main.rhtml | 8 +++++++-
webclient/package/yast2-webclient.changes | 6 ++++++
webclient/public/stylesheets/yast.css | 7 +++++++
3 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/webclient/app/views/layouts/main.rhtml b/webclient/app/views/layouts/main.rhtml
index 9e8d0f4..6e5f44f 100644
--- a/webclient/app/views/layouts/main.rhtml
+++ b/webclient/app/views/layouts/main.rhtml
@@ -34,7 +34,13 @@
<title><%= _("WebYaST") %></title>
</head>
<body id="shell" onload="">
-
+
+ <noscript>
+ <div id="no_js_warning">
+ JavaScript support is missing or disabled. Please turn JavaScript on or use a supported browser (<a href='http://getfirefox.com'>FireFox 3.5 or better</a> or <a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx'>Internet Explorer 8</a>).
+ </div>
+ </noscript>
+
<div id="header">
<%= link_to(image_tag("/images/webyast-logo.png", :alt =>"webyast" ),"/") %>
diff --git a/webclient/package/yast2-webclient.changes b/webclient/package/yast2-webclient.changes
index dc5b7f4..d334e2c 100644
--- a/webclient/package/yast2-webclient.changes
+++ b/webclient/package/yast2-webclient.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Nov 16 18:16:46 CET 2009 - lslezak@suse.cz
+
+- added JavaScript off error header (similar to the unsupported
+ browser header) (bnc#555869)
+
+-------------------------------------------------------------------
Thu Nov 12 12:23:46 UTC 2009 - jreidinger@novell.com
- after logout don't show hosts page (bnc#553250)
diff --git a/webclient/public/stylesheets/yast.css b/webclient/public/stylesheets/yast.css
index e1ccb70..dc0a2da 100644
--- a/webclient/public/stylesheets/yast.css
+++ b/webclient/public/stylesheets/yast.css
@@ -37,6 +37,13 @@
color: red;
}
+#no_js_warning {
+ background-color:#fcfdde;
+ width:100%;
+ text-align:center;
+ padding: 5px 0px 5px 0px
+}
+
#status_patches {
margin-left: 2em;
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org