summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorScott Ostler <sbsotler@gmail.com>2011-01-08 17:03:30 -0500
committerScott Ostler <sbsotler@gmail.com>2011-01-08 17:03:30 -0500
commit1e308142eba46bfa25614c14fd4a8899452bf0ce (patch)
treec666f00f93b5e0a6167de8a60b55e57b4536f0f4 /template
parentbbac5e0ea48d2e443da6c9901ff09c11e8010f83 (diff)
parent7d68c6986c0ba08dcb4c2f3dcca318584021099c (diff)
Merge branch 'master' of ssh://dump.fm/pichat/repo
Diffstat (limited to 'template')
-rw-r--r--template/banner.st2
-rw-r--r--template/fame.st2
-rw-r--r--template/log.st5
-rw-r--r--template/popular.st6
-rw-r--r--template/profile.st43
-rw-r--r--template/rooms/chat.st4
-rw-r--r--template/single_message.st4
-rw-r--r--template/tagged_dumps.st4
-rw-r--r--template/topic.st48
-rw-r--r--template/topic_dump.st8
-rw-r--r--template/userlog.st4
11 files changed, 105 insertions, 25 deletions
diff --git a/template/banner.st b/template/banner.st
index 6108c9a..691cd48 100644
--- a/template/banner.st
+++ b/template/banner.st
@@ -87,7 +87,7 @@
<div id="dumplist">
$if(user_nick)$
- <a href="http://dump.fm/fullscreen">checkout dump.fm in full-screen </a> $else$ <style>#dumplist{z-index:-1!important;}</style> $endif$
+ <a href="http://dump.fm/fullscreen">checkout dump.fm in full-screen </a> - <a href="http://abcdef4.dump.fm/">MYSTERY ROOM!!!!!!!! </a> $else$ <style>#dumplist{z-index:-1!important;}</style> $endif$
$if(isadmin)$ - <a href="http://vip.dump.fm/">NAUGHTY BOYS DELIGHT </a>
$endif$
</div>
diff --git a/template/fame.st b/template/fame.st
index 4735cab..b389d54 100644
--- a/template/fame.st
+++ b/template/fame.st
@@ -15,7 +15,7 @@
<div id="userListp">
<img src="http://dump.fm/static/img/halloffametrophy.gif" id="halltrophy">
- <h2>Hall Of Fame </h2><br><h3>updated hourly</h3>
+ <h2>Hall Of Fame </h2>
</div>
<div id="messageList">
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 3aae2c2..82c77e6 100644
--- a/template/profile.st
+++ b/template/profile.st
@@ -2,14 +2,33 @@
<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
+
+jQuery(document).ready(function() {
+ jQuery('#msgbtn').toggle(
+
+ function(){
+
+ jQuery("#directmsgs").animate({right: "0px"}, 400);
+ },
+ function()
+ {
+ jQuery("#directmsgs").animate({right: "-263px"}, 400);
+
+ });
+ });
+ </script>
</head>
<body class="profiledash">
$if(avatar)$
@@ -91,23 +110,19 @@
</div>
</div>
- $if(isadmin)$
- <br />
+
+
+<a href="#"class="msgbtn" id="msgbtn">messages!</a>
<div id="directmsgs">
<h2>Messages</h2>
+
$dms: { dm |
- <div class="directmsg">
- <b><a href="/$dm.nick$">$dm.nick$</a></b>
- <img src="$dm.avatar$" height="20" width="20" />
+ <div id="singlemsg">
+ <b><a href="/$dm.nick$">$dm.nick$</a>:</b>
<span class="linkify-full">$dm.content$</span>
- </div>
+ </div>
}$
</div>
- <script>
- var Recips = $recips$;
- </script>
- $endif$
-
</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..1594364
--- /dev/null
+++ b/template/topic.st
@@ -0,0 +1,48 @@
+<html>
+ <head>
+ <title>#$topic$ - dump.fm</title>
+ $head()$
+ <script>
+ 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 | $topic_dump(dump=d)$ }$
+ </span>
+ $else$
+ <span>Topic #$topic$ doesn't exist yet!</span>
+ $endif$
+ </div>
+ <div id="msgInputDiv">
+ <div id="msginputrapper">
+ $if(prev)$
+ <a href="/$nick$/whofaved/$prev$"><input id="prevbutton" value="<- Prev" readonly="true"></a>
+ $else$
+ <input id="prevbutton" readonly="true">
+ $endif$
+
+ $if(next)$
+ <a href="/$nick$/whofaved/$next$"> <input id="nextbutton" value="Next ->" readonly="true"></a>
+ $else$
+ <input id="nextbutton" value="nomodumps" readonly="true">
+ $endif$
+ </div>
+ <div id="footerc">
+ $footer()$
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/template/topic_dump.st b/template/topic_dump.st
new file mode 100644
index 0000000..cc52e4e
--- /dev/null
+++ b/template/topic_dump.st
@@ -0,0 +1,8 @@
+<div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$">
+ <div>
+ $dump.created_on$ -- by <a href="/$dump.nick$"><b>$dump.nick$</b></a> in <b><a href="$dump.roomlink$">$dump.key$</a></b>
+ </div>
+ <div class="content">$dump.content$</div>
+<hr/>
+$share_buttons()$
+</div>
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>