From 2dd09cf9dc957d3660744d49d3f8e905d0ce927a Mon Sep 17 00:00:00 2001 From: sostler Date: Fri, 8 Jan 2010 01:49:00 -0500 Subject: Added analytics --- src/site.clj | 1 + 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 = []; + + $if(isadminroom)$ + + + $endif$ - $if(isadmin)$ -

FUCK WE AN ADMIN

- $endif$ $banner()$ -
-
- -
-
+
+
+
+
+
-
+ -
+
$messages: { m |
$m.nick$: - $m.content$
+ $m.content$
}$
@@ -43,17 +52,15 @@
+ />
$endif$
-
- +
-
- -
+
+
-- cgit v1.2.3-70-g09d2