From c350da95fc714d9d1c993e010aaad80c5109d510 Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Thu, 9 Sep 2010 21:40:12 -0400 Subject: Break out messagepane from room templates --- template/messagepane.st | 79 +++++++++++++ template/rooms/VIP.st | 288 +++++++++++++++++++----------------------------- template/rooms/chat.st | 266 +++++++++++++++++--------------------------- 3 files changed, 293 insertions(+), 340 deletions(-) create mode 100644 template/messagepane.st diff --git a/template/messagepane.st b/template/messagepane.st new file mode 100644 index 0000000..cb41edd --- /dev/null +++ b/template/messagepane.st @@ -0,0 +1,79 @@ +
+ $if(isadmin)$ + +
+ show text? + +
+ + $endif$ + + $if(user_nick)$ + $endif$ +
+
+ $messages: { m | + + }$ +
+
+ + $if(user_nick)$ +
+
+ +
+ + + + + +
+ +
+$else$ +
+
+ + + + + +
+ + +$endif$ + + diff --git a/template/rooms/VIP.st b/template/rooms/VIP.st index 2feb579..54bf72a 100644 --- a/template/rooms/VIP.st +++ b/template/rooms/VIP.st @@ -1,198 +1,132 @@ + (c)2010 dump.fm --> - -$head()$ - VIP BALLER ROOM + + $head()$ + $roomname$ dump.fm - - - -$if(user_nick)$ - -$endif$ - + + + $if(user_nick)$ + + $endif$ + + + + + $if(dis)$ + $banner_dis()$ $else$ - function showAlert() { - alert('Join dump.fm @ http://dump.fm/register'); - } + $banner()$ + $if(!user_nick)$ +
+
+ +
dump.fm lets you talk with pictures! Paste an image url, upload, or snap a pic right from your webcam. Talk to friends, fav images, and keep track of the pix you love. +

+ + you already have an account, . If not, register! + +
+
+ -$endif$ - - - - -$if(dis)$ - $banner_dis()$ -$else$ - $banner()$ - $if(!user_nick)$ + + + + + + $endif$ + $endif$ -
+
-
-
- -
- - -$if(user_nick)$ $endif$ -
-
-$messages: { m | -
- - $m.nick$ - $if(m.favorited)$ - - $else$ - - $endif$ - - $m.content$ -
-}$ -
-
- - $if(user_nick)$ -
-
- - - - - - -
-
-$else$ -
-
- - - - - - -
-
- $endif$ - $if(isadmin)$ - -$endif$ -
-
+ $messagepane()$ + + +
+
+
+
+ $footer()$
- -
-
- $footer()$ -
-$preload()$ + $preload()$ +
+

Welcome to the cool club

+ +
+ + -
-

Welcome to the cool club

- -
- - diff --git a/template/rooms/chat.st b/template/rooms/chat.st index 81045e4..cf2d64a 100644 --- a/template/rooms/chat.st +++ b/template/rooms/chat.st @@ -1,183 +1,123 @@ + (c)2010 dump.fm --> - -$head()$ - $roomname$ dump.fm + + $head()$ + $roomname$ dump.fm - - - -$if(user_nick)$ - -$endif$ - + + + $if(user_nick)$ + + $endif$ + - - - -$if(dis)$ - $banner_dis()$ -$else$ - $banner()$ - $if(!user_nick)$ + } + jQuery(Away.startTitleUpdater); + jQuery(initChatMsgs); + $if(user_nick)$ // + $else$ + function showAlert() { + alert('Join dump.fm @ http://dump.fm/register'); + } -
- - -
- + $endif$ + + + + + $if(dis)$ + $banner_dis()$ + $else$ + $banner()$ + $if(!user_nick)$ +
+
+ +
dump.fm lets you talk with pictures! Paste an image url, upload, or snap a pic right from your webcam. Talk to friends, fav images, and keep track of the pix you love. +

+ + you already have an account, . If not, register! + +
+
+ - - - - - -$endif$ -$endif$ + } + + $endif$ + $endif$ -
- +
-
-
- -
- - -$if(user_nick)$ $endif$ -
-
-$messages: { m | -
- - $m.nick$ - $if(m.favorited)$ - - $else$ - - $endif$ - - $m.content$ -
-}$ -
-
- - $if(user_nick)$ -
-
- - - - - - -
-
-$else$ -
-
- - - - - - -
-
- $endif$ - -
-
+ $messagepane()$ + + +
+
+
+
+ $footer()$
- -
-
- $footer()$ -
-$preload()$ - + $preload()$ + -- cgit v1.2.3-70-g09d2