blob: c697705049a1464895494f2c65587daf69f8fbc4 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<html>
<head>
<title>dump.fm Mutes</title>
$head()$
<script src="/static/js/jquery.tablesorter.min.js"
type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/tsort/style.css">
<style>
#main {
padding: 100px 2em 0px 2em;
}
input[type=button] {
font-size: 100%;
}
.reason {
width: 25%;
}
.cancel-reason {
width: 15%;
}
</style>
<script>
jQuery(document).ready(function() {
jQuery('#active-mutes').tablesorter({});
jQuery('#inactive-mutes').tablesorter({});
});
</script>
</head>
<body>
$banner()$
<div id="main">
<h1>Active Mutes</h1>
<table id="active-mutes" class="tablesorter">
<thead>
<tr>
<th>Nick</th>
<th>Admin</th>
<th>Set On</th>
<th>Expires</th>
<th>Duration</th>
<th>Reason</th>
<th></th>
</tr>
</thead>
<tbody>
$active: { m |
<tr mute-id="$m.mute_id$">
<td>$m.nick$</td>
<td>$m.admin_nick$</td>
<td>$m.set_on$</td>
<td>$m.expiry$</td>
<td>$m.duration$</td>
<td class="reason">$m.reason$</td>
<td align="center">
<input type="button" value="Cancel"
onclick="javascript:Admin.cancelMute($m.mute_id$, '$m.nick$')">
</td>
</tr>
}$
</tbody>
</table>
<br />
<h1>Inactive Mutes</h1>
<table id="inactive-mutes" class="tablesorter">
<thead>
<tr>
<th>Nick</th>
<th>Admin</th>
<th>Set On</th>
<th>Expires</th>
<th>Duration</th>
<th>Reason</th>
<th>Status</th>
<th>Cancelled By</th>
<th>Cancel reason</th>
</tr>
</thead>
<tbody>
$inactive: { m |
<tr>
<td>$m.nick$</td>
<td>$m.admin_nick$</td>
<td>$m.set_on$</td>
<td>$m.expiry$</td>
<td>$m.duration$</td>
<td class="reason">$m.reason$</td>
<td>$m.cancelled$</td>
<td>$m.cancel_nick$</td>
<td class="cancel-reason"></td>
</tr>
}$
</tbody>
</table>
</div>
</body>
</html>
|