summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-04-16 13:41:02 -0400
committersostler <sbostler@gmail.com>2010-04-16 13:41:02 -0400
commit21922b749a5696a2ea4274e0968ad2d3d20dcc9d (patch)
tree49c1fdd33fffe318109e6609ad1b5db343d3d0ed /template
parentff63970f9d785672f146d82cf1da0935db4b9b5e (diff)
Intermediate commit from muting admin
Diffstat (limited to 'template')
-rw-r--r--template/mutes.st107
1 files changed, 107 insertions, 0 deletions
diff --git a/template/mutes.st b/template/mutes.st
new file mode 100644
index 0000000..c697705
--- /dev/null
+++ b/template/mutes.st
@@ -0,0 +1,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>
+
+
+