diff options
| -rwxr-xr-x | src/site.clj | 4 | ||||
| -rwxr-xr-x | static/css/header.css | 6 | ||||
| -rw-r--r-- | static/img/wherestim.gif | bin | 0 -> 1702 bytes | |||
| -rwxr-xr-x | template/banner.st | 65 |
4 files changed, 42 insertions, 33 deletions
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 Binary files differnew file mode 100644 index 0000000..011bbdc --- /dev/null +++ b/static/img/wherestim.gif 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 @@ - <div id="rapper7"> <div id="header7"> - <div id="logoicons"> - <div id="logo7"> - <div align="center"><a href="/">dump.fm</a></div> - </div> - <div class="white"> - - <div id="bar7"> - <div style="float: left;"> - <div align="center"> - $if(user_nick)$ - + <div id="logoicons"> + <div id="logo7"> + <div align="center"><a href="/">dump.fm</a></div> + </div> + <div class="white"> + + <div id="bar7"> + <div style="float: left;"> + <div align="center"> + $if(user_nick)$ - <a href="/log" ><img src="/static/img/log.gif"width="20px" height="20px"> Log</a> - <a href="/u/$user_nick$">$if(user_avatar)$<img src="$user_avatar$" width="19px" height="19px" />$else$<img src="/static/img/profile.gif"width="22px" height="22px" />$endif$ Profile</a> - <a href="/directory"><img src="/static/img/directory.gif"width="20px" height="20px" /> Directory</a> - <a href="/browser"><img src="/static/img/image_draw.gif"/> Image Search</a> - - $else$ - -<div id="registerlink"> -<a href="/register"><img src="/static/img/ako.gif"width="21px" height="21px" /> Register</a> -</div> + <a href="/log" ><img src="/static/img/log.gif"width="20px" height="20px"> Log</a> + <a href="/u/$user_nick$">$if(user_avatar)$<img src="$user_avatar$" width="19px" height="19px" />$else$<img src="/static/img/profile.gif"width="22px" height="22px" />$endif$ Profile</a> + <a href="/directory"><img src="/static/img/directory.gif"width="20px" height="20px" /> Directory</a> + <a href="/browser"><img src="/static/img/image_draw.gif"/> Image Search</a> + + $else$ + - - $endif$ - </div> + <div id="registerlink"> + <a href="/register"><img src="/static/img/ako.gif"width="21px" height="21px" /> Register</a> + </div> + + $endif$ + <div id="wherestim"> + <img src="/static/img/wherestim.gif"> + </div> + </div> </div> </div> </div> @@ -36,12 +37,14 @@ <div id="topic"></div> - $if(isadmin)$ - <div id="vippp"> - <a href="/VIP/chat"> ★ VIP ★ </a> - </div> - $endif$ - <div id="logout7" class="white"> + + + $if(isadmin)$ + <div id="vippp"> + <a href="/VIP/chat"> ★ VIP ★ </a> + </div> + $endif$ + <div id="logout7" class="white"> <div align="center">$if(user_nick)$ <a href="/logout"><img src="/static/img/door.gif" width="16" height="16" /> Logout</a> $else$ $form_login()$ $endif$ </div> |
