diff options
| author | sostler <sbostler@gmail.com> | 2010-01-08 01:49:00 -0500 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-01-08 01:49:00 -0500 |
| commit | 2dd09cf9dc957d3660744d49d3f8e905d0ce927a (patch) | |
| tree | 2309271f8d9ce241a8afbae1ff21b73fc8381983 | |
| parent | ea76760f2b6a4500167b6547b4aa4b45c4d92861 (diff) | |
Added analytics
| -rwxr-xr-x | src/site.clj | 1 | ||||
| -rwxr-xr-x | template/chat.st | 41 |
2 files changed, 25 insertions, 17 deletions
diff --git a/src/site.clj b/src/site.clj index f3aa9a1..2bbc2bb 100755 --- a/src/site.clj +++ b/src/site.clj @@ -313,6 +313,7 @@ (.setAttribute st "messages" message-list) (.setAttribute st "roomkey" (room :key)) (.setAttribute st "isadmin" (session :is_admin)) + (.setAttribute st "isadminroom" (room :admin_only)) (.setAttribute st "json_room_key" (json-str (room :key))) (.setAttribute st "json_user_nick" (if nick (json-str nick) "null")) (.setAttribute st "roomname" (room :name)) diff --git a/template/chat.st b/template/chat.st index 1bbdaf4..fd69286 100755 --- a/template/chat.st +++ b/template/chat.st @@ -10,20 +10,29 @@ var Timestamp = $timestamp$; var PostedMessages = []; </script> + + $if(isadminroom)$ + <style> + iframe { + z-index: 50000; + position: fixed; + top: 300px; + right: 25px; + } + </style> + <script src="http://widgets.getclicky.com/tally/?site_id=170656&sitekey=736f7dd41a0612d8d50797c65768e71a&width=175&height=250&title=Visitors" type="text/javascript"></script> + $endif$ </head> <body> - $if(isadmin)$ - <h1>FUCK WE AN ADMIN</h1> - $endif$ $banner()$ -<div id="chatrap"><div id="logc"> - <div id="content"> - - <div id="messagetabs"></div> - <div id="rapper"> + <div id="chatrap"> + <div id="logc"> + <div id="content"> + <div id="messagetabs"></div> + <div id="rapper"> <div id="loghead"></div> </div> - <div id="userList"> + <div id="userList"> $users: { u | <div class="username"><a href="/u/$u.nick$"> $if(u.avatar)$<img src="$u.avatar$" width="50" height="50">$endif$ @@ -31,11 +40,11 @@ </div> }$ </div> - <div id="messagePane"> + <div id="messagePane"> <div id="messageList"> $messages: { m | <div class="msgDiv oldmsg"><b><a href="/u/$m.nick$">$m.nick$</a>: </b> - <span class="content">$m.content$<span></div> + <span class="content">$m.content$<span></div> }$ <hr /> </div> @@ -43,17 +52,15 @@ <div id="msgInputDiv"> <input id="msgInput" class="msgInput" type="input" /> <input id="msgSubmit" type="submit" value="Send Image URL" - /> + /> </div> $endif$ </div> - </div> - + </div> </div> </div> - </div> - - </div> +</div> +</div> </div> <div id="footerc"> |
