diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-01-04 15:42:23 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-01-04 15:42:23 -0500 |
| commit | 92b092823c21af1339e0d42716dc856357f93e85 (patch) | |
| tree | 809221e2a3b3c88306ba5e4b4996eb05297cec02 /template | |
| parent | 7a031af911887a913857fdcebb252231119f4bf9 (diff) | |
Added topics, refactored recipient handling
Diffstat (limited to 'template')
| -rw-r--r-- | template/log.st | 5 | ||||
| -rw-r--r-- | template/popular.st | 6 | ||||
| -rw-r--r-- | template/profile.st | 18 | ||||
| -rw-r--r-- | template/rooms/chat.st | 4 | ||||
| -rw-r--r-- | template/single_message.st | 4 | ||||
| -rw-r--r-- | template/tagged_dumps.st | 4 | ||||
| -rw-r--r-- | template/topic.st | 39 | ||||
| -rw-r--r-- | template/userlog.st | 4 |
8 files changed, 63 insertions, 21 deletions
diff --git a/template/log.st b/template/log.st index 92a0f75..ab4eb53 100644 --- a/template/log.st +++ b/template/log.st @@ -3,7 +3,10 @@ <title>dump.fm log</title> $head()$ <script> - jQuery(document).ready(initLog); + var Recips = []; + jQuery(function() { + initLog(Recips) + }); </script> </head> <body> diff --git a/template/popular.st b/template/popular.st index 65eeece..c900dd9 100644 --- a/template/popular.st +++ b/template/popular.st @@ -2,10 +2,10 @@ <head> <title>dump.fm - $nick$'s popular</title> $head()$ - - <script> - jQuery(document).ready(initLog); + jQuery(function() { + initLog([]) + }); </script> </head> diff --git a/template/profile.st b/template/profile.st index 6b54c43..82c77e6 100644 --- a/template/profile.st +++ b/template/profile.st @@ -2,16 +2,16 @@ <head> <title>$nick$'s dump.fm</title> <meta property="og:image" content="$avatar$"/> - <meta property="og:title" content="$nick$'s dump.fm"/> - <meta property="og:site_name" content="dump.fm"/> + <meta property="og:title" content="$nick$'s dump.fm"/> + <meta property="og:site_name" content="dump.fm"/> $head()$ <script src="/static/js/jquery.editinplace.1.0.1.packed.js" type="text/javascript"></script> <script src="/static/js/ajaxupload.js"></script> <script> - jQuery(document).ready(initProfile); + jQuery(function() { + initProfile($recips$); + }); </script> - - <script> //MESSAGE STUFF @@ -28,8 +28,7 @@ jQuery(document).ready(function() { }); }); - </script> - + </script> </head> <body class="profiledash"> $if(avatar)$ @@ -124,11 +123,6 @@ jQuery(document).ready(function() { </div> }$ </div> - <script> - var Recips = $recips$; - </script> - - </div> <div id="footerc"> $footer()$ diff --git a/template/rooms/chat.st b/template/rooms/chat.st index f7ca888..a8269a6 100644 --- a/template/rooms/chat.st +++ b/template/rooms/chat.st @@ -10,9 +10,9 @@ \ \:\/:/ \ \:\ /:/ \ \:\ \ \::/ \ \::/ \ \:\ \ \::/ \ \:\/:/ \ \:\ \ \:\ \ \:\ \ \:\ \__\/ \ \::/ \ \:\ \ \:\ \ \:\ \ \:\ - \__\/ \__\/ \__\/ \__\/ \__\/ + \__\/ \__\/ \__\/ \__\/ \__\/ \___\/ - (c)2010 dump.fm --> + (c)2011 dump.fm --> <html> <head> diff --git a/template/single_message.st b/template/single_message.st index 1428f2b..3bf49ac 100644 --- a/template/single_message.st +++ b/template/single_message.st @@ -3,7 +3,9 @@ <title>dump.fm</title> $head()$ <script> - jQuery(document).ready(initLog); + jQuery(function() { + initLog($recips$); + }); </script> </head> <body class="permalink"> diff --git a/template/tagged_dumps.st b/template/tagged_dumps.st index 44c4b5e..b488afb 100644 --- a/template/tagged_dumps.st +++ b/template/tagged_dumps.st @@ -4,7 +4,9 @@ $head()$ <link rel="stylesheet" media="screen" type="text/css" href="http://dump.fm/static/css/dump.css"> <script> - jQuery(document).ready(initLog); + jQuery(function() { + initLog($recips$); + }); </script> </head> <body> diff --git a/template/topic.st b/template/topic.st new file mode 100644 index 0000000..71451b2 --- /dev/null +++ b/template/topic.st @@ -0,0 +1,39 @@ +<html> + <head> + <title>#$topic$ - dump.fm</title> + $head()$ + <script> + var Recips = $recips$; + jQuery(function() { + initLog(Recips) + }); + </script> + </head> + <body> + $banner()$ + <div id="content"> + <div id="messagePanep"> + <div id="userListp"> + <h2><a href="/t/$topic$">#$topic$</a></h2> + <br><h3></h3> + </div> + <div id="messageList"> + $if(dumps)$ + <span class="content"> + $dumps: { d | $log_dump(dump=d)$ }$ + </span> + $else$ + <span>Topic #$topic$ doesn't exist yet!</span> + $endif$ + </div> + </div> + <div id="footerc"> + $footer()$ + </div> + </div> +</div> +</div> +</div> + + </body> +</html> diff --git a/template/userlog.st b/template/userlog.st index c073ce3..4e67c82 100644 --- a/template/userlog.st +++ b/template/userlog.st @@ -3,7 +3,9 @@ <title>$nick$'s dump.fm</title> $head()$ <script> - jQuery(document).ready(initLog); + jQuery(function() { + initLog($recips$); + }); </script> </head> <body> |
