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/rooms/chat.st | 266 +++++++++++++++++++------------------------------ 1 file changed, 103 insertions(+), 163 deletions(-) (limited to 'template/rooms/chat.st') 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'); + } -
- - -
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. -

- - If you already have an account, . If not, 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