summaryrefslogtreecommitdiff
path: root/template/directory.st
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-03-04 23:03:31 -0500
committerScott Ostler <sostler@deathmachine.local>2010-03-04 23:03:31 -0500
commite8142b2742433ea26f6434e5933cddea8b4711c2 (patch)
treeb871835914a46c3d6414c8ff5fc979e60344c606 /template/directory.st
parent137fd71eced7732550f448dc42e2422340241d7b (diff)
initial directory
Diffstat (limited to 'template/directory.st')
-rw-r--r--template/directory.st38
1 files changed, 37 insertions, 1 deletions
diff --git a/template/directory.st b/template/directory.st
index 23960f0..c57c333 100644
--- a/template/directory.st
+++ b/template/directory.st
@@ -16,7 +16,15 @@
top: 57px;
padding: 2em;
}
+ .linkify img {
+ max-height: 300px;
+ max-width: 200px;
+ }
</style>
+ <script>
+ jQuery(document).ready(initDirectory);
+ </script>
+
</head>
<body>
$banner()$
@@ -24,7 +32,35 @@
<div id="headerbar"></div>
<div id="main">
<h3>DUMP STARS</h3>
- </div>
+ <br />
+
+ $if(users)$
+ $users:{ u |
+ <div>
+ <a href="/u/$u.nick$">
+ <h2>$u.nick$</h2>
+ $if(u.avatar)$
+ <img height="50" width="50" src="$u.avatar$"></img>
+ $endif$
+ </a>
+ <div>
+ <span>Last post:</span>
+ <span class="linkify">$u.content$</span>
+ </div>
+ <hr />
+ }$
+ $else$
+ <span>No more users!</span>
+ $endif$
+
+ $if(prev)$
+ <a href="/directory$prev$">BACK</a>
+ $endif$
+ $if(users)$
+ <a href="/directory$next$">MORE</a>
+ $endif$
+
+ </div>
<div id="footer">
$footer()$
</div>