summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-03-17 00:21:12 -0400
committerScott Ostler <sostler@deathmachine.local>2010-03-17 00:21:12 -0400
commit8e552b2252c8464f563c33424bd9ff55eb81e4e0 (patch)
tree3ade380f62e34d6d7cc194829ae515238d8bbd18
parent5c1f0b978d97df29d9b626b0695ca68e12cf0fc9 (diff)
parent864fc418066cfb5f9de22d3dd3369d3efc6810b3 (diff)
ready for deploy
-rwxr-xr-xsrc/site.clj1
-rw-r--r--template/directory.st100
2 files changed, 45 insertions, 56 deletions
diff --git a/src/site.clj b/src/site.clj
index 9ef4cdf..f76531d 100755
--- a/src/site.clj
+++ b/src/site.clj
@@ -411,7 +411,6 @@
AND room_id = 1
AND is_image = true
ORDER BY created_on DESC LIMIT 1)")]
- (println qry)
(when (> (count user-ids) 0)
(let [res (do-select [qry])
keys (map :user_id res)
diff --git a/template/directory.st b/template/directory.st
index 9f68812..954c717 100644
--- a/template/directory.st
+++ b/template/directory.st
@@ -1,13 +1,13 @@
<html>
<head>
-
+
<title>dump.fm</title>
$head()$
- <link rel="stylesheet" type="text/css" href="/static/directory.css">
+ <link rel="stylesheet" type="text/css" href="/static/directory.css">
<script>
jQuery(document).ready(initDirectory);
</script>
-
+
</head>
<body>
@@ -16,60 +16,50 @@
<div id="log">
<div id="loghead"></div>
<br>
-
- <div id="posts">
-
- <br>
- <center>
- <h2> &#x272D; &#x272D; DUMP STARS &#x272D; &#x272D;</h2>
- <div id="lolbanner">
- <img src="/static/welcomebanner.gif">
- </div>
-
- </center>
-
- $if(notloaded)$
- <div>Sorry, the directory is being updated. Refresh in a minute!</div>
- $elseif(users)$
-
- $users:{ u |
- <div class="logged-dump">
- <a href="/u/$u.nick$">
- <b>$u.nick$</b>
- $if(u.avatar)$
- <div id="logavatar"> <img height="50" width="50" src="$u.avatar$" /></div>
+
+ <div id="posts">
+ <br>
+ <center>
+ <h2>&#x272D; &#x272D; DUMP STARS &#x272D; &#x272D;</h2>
+ <div id="lolbanner">
+ <img src="/static/welcomebanner.gif">
+ </div>
+ </center>
+ $if(users)$
+ $users:{ u |
+ <div class="logged-dump">
+ <a href="/u/$u.nick$">
+ <b>$u.nick$</b>
+ $if(u.avatar)$
+ <div style="border-image:url($u.avatar$)">
+ <div id="logavatar">
+ <img height="50" width="50" src="$u.avatar$"></img>
+ </div>
$endif$
- </a>
- <div id="infotxt">
- <b><div style="display:none;">Count: $u.cnt$ !!</div>last post</b>
- </div>
- <span class="linkify">$u.content$</span>
+ </a>
+ <div id="infotxt"><b>last post</b></div>
+ <span class="linkify">$u.content$</span>
<hr />
-<div style="display:none;">
-
-<a href="http://www.facebook.com/share.php?u=$u.content$" target="_blank"><img src="/static/fbbutton.png"></a>
-
-<a href="http://twitter.com/home?status=found on dump.fm! $u.content$" target="_blank"><img src="/static/twittericon.png"></a>
-<a href="http://delicious.com/save?url=$u.content$" target="_blank"><img src="/static/delishicon.png"></a></div>
+ </div>
+ <a href="http://www.facebook.com/share.php?u=$u.content$&t=via dump.fm" target="_blank"><img src="/static/fbbutton.png"></a>
+ <a href="http://twitter.com/home?status=via dump.fm $u.content$" target="_blank"><img src="/static/twittericon.png"></a>
+ <a href="http://delicious.com/save?url=$u.content$&notes=via dump.fm&title=$u.content$" target="_blank"><img src="/static/delishicon.png"></a>
+ </div>
+ }$
+ $else$
+ <span>No more users!</span>
+ $endif$
+ <div id="pnav">
+ $if(prev)$
+ <div id="pnavn"><a href="/directory$prev$">BACK</a></div>
+ $endif$
+ $if(users)$
+ <div id="pnavo"> <a href="/directory$next$">MOAR!</a></div>
+ $endif$
+ </div>
+ <div id="footer">
+ $footer()$
</div>
-
- }$
- $else$
- <span>No more users!</span>
- $endif$
- <div id="pnav">
-
- $if(prev)$
- <div id="pnavn"><a href="/directory$prev$">BACK</a></div>
- $endif$
- $if(users)$
- <div id="pnavo"> <a href="/directory$next$">MOAR!</a></div>
- $endif$
-
- </div>
- <div id="footer">
- $footer()$
- </div>
- </div>
+ </div>
</body>
</html>