From 3bc6dfdbb08028fae24b17ad07d6ccbb06e809cb Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Thu, 8 Apr 2010 05:27:40 -0400 Subject: Remove check for username caps, added tim banner --- src/site.clj | 4 +-- static/css/header.css | 6 +++++ static/img/wherestim.gif | Bin 0 -> 1702 bytes template/banner.st | 65 +++++++++++++++++++++++++---------------------- 4 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 static/img/wherestim.gif diff --git a/src/site.clj b/src/site.clj index 43bbe7e..ef4e773 100755 --- a/src/site.clj +++ b/src/site.clj @@ -105,8 +105,8 @@ (not (re-matches nick-regex n)) "NICK_INVALID_CHARS")) (defn fetch-nick [nick] - (let [query "SELECT * FROM users WHERE LOWER(nick) = ? LIMIT 1"] - (first (do-select [query (s/lower-case nick)])))) + (let [query "SELECT * FROM users WHERE nick = ? LIMIT 1"] + (first (do-select [query nick])))) (defn authorize-nick-hash [nick hash] (let [db-user (fetch-nick nick)] diff --git a/static/css/header.css b/static/css/header.css index 2e6a3e6..42f4b26 100755 --- a/static/css/header.css +++ b/static/css/header.css @@ -34,6 +34,12 @@ margin-right:80%; color: #fff; } +#wherestim{ +position:absolute; +top:-10; +left:390; +} + #header7{ background-image:url(/static/img/dblue2.png); background-attachment:inherit; diff --git a/static/img/wherestim.gif b/static/img/wherestim.gif new file mode 100644 index 0000000..011bbdc Binary files /dev/null and b/static/img/wherestim.gif differ diff --git a/template/banner.st b/template/banner.st index 02613c6..6d99d8b 100755 --- a/template/banner.st +++ b/template/banner.st @@ -1,33 +1,34 @@ -
-
-
- -
-
- -
-
-
- $if(user_nick)$ - +
+
+ +
+
+ +
+
+ + + + $endif$ +
+ +
+
@@ -36,12 +37,14 @@
- $if(isadmin)$ - - $endif$ -
+ + + $if(isadmin)$ + + $endif$ +
$if(user_nick)$ Logout $else$ $form_login()$ $endif$
-- cgit v1.2.3-70-g09d2