summaryrefslogtreecommitdiff
path: root/template/directory.st
blob: 5953563fe799418e534882ea2c6a4da320b82b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>
  <head>
    <title>dump.fm Directory</title>
    $head()$
    <style>
      body {
      background-attachment: fixed;
      background-color: #FFE;
      background-image: url(http://localhost:8080/static/chanbg.png);
      background-position: 1px 10px;
      background-repeat: repeat-x;
      font-family: Arial, Helvetica, sans-serif;
      }
      #main {
         position: absolute;
         top: 57px;
         padding: 2em;
      }
      .linkify img {
      max-height: 300px;
      max-width: 200px;
      }
    </style>
    <script>
      jQuery(document).ready(initDirectory);
    </script>
    
  </head>
  <body>
    $banner()$
    <div id="chatrap">  
      <div id="headerbar"></div>
      <div id="main">
        <h3>DUMP STARS</h3>
        <br />

        $if(notloaded)$
        <div>Sorry, the directory is being updated. Refresh in a minute!</div>
        $elseif(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>Count: $u.cnt$</div>
          <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>
    </div>
  </body>
</html>