Permalink
Browse files

Add noscript warning to login page (#1488615)

  • Loading branch information...
1 parent 6199a72 commit b6add5aed0cfe2ca5597b71abafe4cadc3405310 @thomascube thomascube committed Nov 19, 2012
View
1 program/localization/en_US/messages.inc
@@ -163,5 +163,6 @@ $messages['invalidimageformat'] = 'Not a valid image format.';
$messages['mispellingsfound'] = 'Spelling errors detected in the message.';
$messages['parentnotwritable'] = 'Unable to create/move folder into selected parent folder. No access rights.';
$messages['messagetoobig'] = 'The message part is too big to process it.';
+$messages['noscriptwarning'] = 'Warning: This webmail service requires Javascript! In order to use it please enable Javascript in your browser\'s settings.';
?>
View
8 skins/classic/common.css
@@ -782,6 +782,14 @@ a.rcmContactAddress:hover
color: #666;
}
+#login-noscriptwarning
+{
+ margin: 2em auto 0 auto;
+ width: 400px;
+ color: #cf2734;
+ font-weight: bold;
+}
+
#console
{
opacity: 0.8;
View
4 skins/classic/templates/login.html
@@ -24,6 +24,10 @@
</div>
</div>
+<noscript>
+ <p id="login-noscriptwarning"><roundcube:label name="noscriptwarning" /></p>
+</noscript>
+
<div id="login-bottomline">
<roundcube:var name="config:product_name"> <roundcube:object name="version" condition="config:display_version" />
<roundcube:if condition="config:support_url" />
View
8 skins/larry/styles.css
@@ -1233,6 +1233,14 @@ ul.proplist li {
padding-top: 10px;
}
+#login-form .noscriptwarning {
+ margin: 0 auto;
+ width: 430px;
+ color: #cf2734;
+ font-size: 110%;
+ font-weight: bold;
+}
+
#login-form td.input {
width: 80%;
padding: 8px;
View
3 skins/larry/templates/login.html
@@ -21,6 +21,9 @@
<div class="box-bottom">
<roundcube:object name="message" id="message" />
+ <noscript>
+ <p class="noscriptwarning"><roundcube:label name="noscriptwarning" /></p>
+ </noscript>
</div>
<div id="bottomline">

0 comments on commit b6add5a

Please sign in to comment.