-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (56 loc) · 1.58 KB
/
index.html
File metadata and controls
63 lines (56 loc) · 1.58 KB
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
<!DOCTYPE HTML>
<html>
<head>
<title>charklr*</title>
<link rel='stylesheet' href='{STATIC}style.css'>
<script src='{STATIC}connections.js'></script>
<script src='{STATIC}doT.min.js'></script>
</head>
<body>
<div id='sidebar'>
<div id='logo'></div>
<a href='#!/users'>Users</a>
<a href='#!/posts'>Posts</a>
</div>
<div id='content'></div>
<script id='template_users' type='text/template'>
<table>
<thead>
<tr><th>ID</th><th>Username</th><th>Displayname</th><th>Email</th><th>Mute</th><th>Ban</th></tr>
</thead>
<tbody>
{{~it :users:index}}
<tr id='user_{{=users.id}}'>
<td>{{=users.id}}</td>
<td>{{=users.username}}</td>
<td>{{=users.displayname}}</td>
<td>{{=users.email}}</td>
<td><a id='mute_{{=users.id}}' href='javascript:muteUser({{=users.id}}, "{{=users.displayname}}")'>{{? users.mutetime > 0 }}un{{??}}x{{?}}</a></td>
<td><a id='ban_{{=users.id}}' href='javascript:banUser({{=users.id}}, "{{=users.displayname}}")'>{{? users.rank >= 0 }}x{{?? users.rank == -1 }}un{{?}}</a></td>
</tr>
{{~}}
</tbody>
</table>
</script>
<script id='template_posts' type='text/template'>
<table>
<thead>
<tr><th>ID</th><th>User</th><th>Post</th><th>Delete</th></tr>
</thead>
<tbody>
{{~it :post:index}}
<tr id='post_{{=post.id}}'>
<td>{{=post.id}}</td>
<td>{{=post.from}}</td>
<td>{{=post.message}}</td>
<td><a href='javascript:deletePost({{=post.id}})'>x</a></td>
</tr>
{{~}}
</tbody>
</table>
</script>
<script type='text/javascript'>
initTemplates();
</script>
</body>
</html>