summaryrefslogtreecommitdiff
path: root/template/users.st
blob: 1168b6ef6c3361739b0fbb1dc01f75760facf13b (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
73
<html>
  <head>
    <title>dump.fm new users</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"
            type="text/javascript"></script>
    <script src="/static/js/jquery.tablesorter.min.js"
            type="text/javascript"></script>
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css">
            
    <script src="/static/js/admin.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/static/tsort/style.css">
    <style>
      body { font-family: Monaco, "Courier New", Courier, monospace; }
      input[type=button] {
          font-size: 100%;
      }
      .reason {
          width: 25%;
      }

      .cancel-reason {
          width: 15%;
      }
    </style>
    
    <script>
      jQuery(document).ready(function() {
          jQuery('#new-users').tablesorter({});
      });
    </script>
  </head>
  <body>
    <h1><a href="http://hump.fm">dump.fm new users</a></h1>
    <div id="main">
      
      <table id="new-users" class="tablesorter">
        <thead>
          <tr>
            <th>Nick</th>
            <th>Email</th>
            <th>Created on</th>
            <th>Last seen</th>
            <th>Created IP</th>
            <th>Last IP</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          $users: { u |
              <tr user-id="$u.user_id$">
                <td><a href="/$u.nick$/">$u.nick$</a></td>
                <td>$u.email$</td>
                <td>$u.created_on$</td>
                <td>$u.last_login$</td>
                <td><a href="http://www.geobytes.com/IpLocator.htm?GetLocation&IpAddress=$u.created_ip$">$u.created_ip$</a></td>
                <td><a href="http://www.geobytes.com/IpLocator.htm?GetLocation&IpAddress=$u.last_ip$">$u.last_ip$</a></td>
                <td align="center">
                  <input type="button" value="Mute"
                         onclick="javascript:Admin.mute('$u.nick$')">
                </td>
              </tr>
          }$
        </tbody>
      </table>      

      <br />
    </div>
  </body>
</html>