summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-01-12 00:36:33 -0500
committersostler <sbostler@gmail.com>2010-01-12 00:36:33 -0500
commit54d552f0376f5e58d9998c2ace860e80d2fd49ba (patch)
tree0c7b51a08d8b085b7f320c68bcb468e45436ebe7 /template
parent7aa611019b6adb1bce5fd83c1ad90de406f6ea85 (diff)
Added browser template
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/browser.st9
-rwxr-xr-xtemplate/chat.st6
2 files changed, 14 insertions, 1 deletions
diff --git a/template/browser.st b/template/browser.st
new file mode 100755
index 0000000..f9439d6
--- /dev/null
+++ b/template/browser.st
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ $if(nick)$
+ Hello, $nick$
+ $else$
+ Hello, unnamed
+ $endif$
+ </body>
+</html>
diff --git a/template/chat.st b/template/chat.st
index 5c97275..701dd92 100755
--- a/template/chat.st
+++ b/template/chat.st
@@ -9,7 +9,11 @@
var Room = $json_room_key$;
var Timestamp = $timestamp$;
var PostedMessages = [];
- var IsAdmin = $if(isadmin)$ true $else$ false $endif$
+ $if(isadmin)$
+ var IsAdmin = true;
+ $else$
+ var IsAdmin = false;
+ $endif$
</script>
$if(isadminroom)$