[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 5743, 5743 - Make login errors a little nicer
Nicole Engard
nengard at bywatersolutions.com
Fri Feb 11 07:14:11 CET 2011
From: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
koha-tmpl/intranet-tmpl/prog/en/css/login.css | 22 ++++++++++++++++++--
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl | 6 ++--
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/login.css b/koha-tmpl/intranet-tmpl/prog/en/css/login.css
index 88b8782..5ed2c64 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/css/login.css
+++ b/koha-tmpl/intranet-tmpl/prog/en/css/login.css
@@ -20,7 +20,7 @@ a:hover {
}
body {
- background: #f9fcfe;
+ background: #f5f5f5;
}
form, label input {
@@ -52,13 +52,29 @@ label {
}
#login #login_error {
- background: #c00;
+ background: #D23F3F;
border: 1px solid #a40000;
color: #fff;
- font-size: 16px;
+ font-size: 120%;
+ line-height: 140%;
font-weight: bold;
+ margin: 1em 0;
padding: .5em;
text-align: center;
+ text-shadow: 0px 1px 1px #6C1010;
+ filter: dropshadow(color=#6C1010, offx=0, offy=1);
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+}
+
+#login #login_error a:link,
+#login #login_error a:visited {
+ color : #FFC;
+}
+
+#login #login_error a:hover,
+#login #login_error a:active {
+ color : #FCFC4D;
}
#login h1 {
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl
index fe2cd96..becdfe2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl
@@ -16,15 +16,15 @@
<div id="login">
<h1><a href="http://koha-community.org">Koha</a></h1>
<!-- TMPL_IF NAME="nopermission" -->
-<div id="login_error"><strong>Error: </strong>Unauthorized user<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
+<div id="login_error"><strong>Error:</strong> You do not have permission to access this page. <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Click to log out</a></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="timed_out" -->
-<div id="login_error"><strong>Error: </strong>Session timed out, please log in again</div>
+<div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="different_ip" -->
-<div id="login_error"><strong>Error: </strong>IP address has changed, please log in again </div>
+<div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="wrongip" -->
--
1.5.6.5
More information about the Koha-patches
mailing list