summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-10-03 09:08:19 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-10-03 09:08:19 -0400
commite5f01c9ad63b4547900a488c452523a3f88344c5 (patch)
tree3017ff555cc4e991b13b0913adacfe3f8a9c5c81 /template
parent3cf4af29bc9744f34aed362113dd6f158ec19144 (diff)
timb: testing using redis to store a sorted set of post favcounts
Diffstat (limited to 'template')
-rw-r--r--template/hiscore_test.st58
-rw-r--r--template/share_buttons.st5
2 files changed, 62 insertions, 1 deletions
diff --git a/template/hiscore_test.st b/template/hiscore_test.st
new file mode 100644
index 0000000..e700bb0
--- /dev/null
+++ b/template/hiscore_test.st
@@ -0,0 +1,58 @@
+<html>
+ <head>
+ <title>dump.fm log</title>
+$head()$
+ <script>
+ jQuery(document).ready(initLog);
+ </script>
+ </head>
+ <body>
+$banner()$
+ <div id="content">
+ <div id="messagePanep">
+ <div id="userListp">
+ <h2> most fav'd dumps this week </h2><br><h3></h3>
+ </div>
+ <div id="messageList">
+
+ $if(dumps)$
+ <span class="content"><center>
+ $dumps: { d | $log_dump(dump=d)$ }$
+ </center></span>
+ $if(json_tags)$
+ <script>
+ $json_tags: { j | $j$;
+ }$
+ </script>
+ $endif$
+ $else$
+ No dumps!
+ $endif$
+ </div>
+
+
+ <div id="msgInputDiv">
+ <div id="msginputrapper">
+
+<!--
+$if(prev)$
+ <a href="$domain$/altars/-$prev$""><input id="prevbutton" value="<- Prev" readonly="true"></a>
+$else$
+<input id="prevbutton" readonly="true">
+$endif$
+$if(next)$
+ <a href="$domain$/altars/$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></div></div>
+
+ </body>
+</html>
diff --git a/template/share_buttons.st b/template/share_buttons.st
index 882ec07..7cb874f 100644
--- a/template/share_buttons.st
+++ b/template/share_buttons.st
@@ -11,4 +11,7 @@ $else$
<img src="/static/img/thumbs/heart.gif" class="thumb" onclick="Tag.favorite(this)">
</div>
$endif$
-</span> \ No newline at end of file
+$if(dump.favcount)$
+ $dump.favcount$
+$endif$
+</span>