summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/browser.st80
-rw-r--r--template/chat.st1
-rw-r--r--template/head.st1
-rw-r--r--template/mutes.st107
4 files changed, 150 insertions, 39 deletions
diff --git a/template/browser.st b/template/browser.st
index 8cb6403..4ebcd1b 100644
--- a/template/browser.st
+++ b/template/browser.st
@@ -3,38 +3,40 @@
<title>dump.fm | Image Search Beta</title>
$head()$
<link rel="stylesheet" type="text/css" href="/static/css/browser.css">
- <script type="text/javascript" src="/static/gritter/js/jquery.gritter.js"></script>
- <link rel="stylesheet" type="text/css" href="/static/gritter/css/jquery.gritter.css" />
-
-
+ <script type="text/javascript" src="/static/gritter/js/jquery.gritter.js"></script>
+ <link rel="stylesheet" type="text/css" href="/static/gritter/css/jquery.gritter.css" />
<script>
- jQuery(document).ready(initChat);
- var Nick = $json_user_nick$;
- var Room = $json_room_key$;
- var Timestamp = $timestamp$;
- var PostedMessages = [];
- var IsAdmin = "$isadmin$";
+ jQuery(document).ready(initChat);
+ var Nick = $json_user_nick$;
+ var Room = $json_room_key$;
+ var Timestamp = $timestamp$;
+ var Version = $version$;
+$if(isadmin)$
+ var IsAdmin = true;
+$else$
+ var IsAdmin = false;
+$endif$
var growlize = true;
</script>
<style>
iframe {
- z-index: 50000;
- position: fixed;
- top: 300px;
- right: 25px;
+ z-index: 50000;
+ position: fixed;
+ top: 300px;
+ right: 25px;
- width:100%;
- height:100%;
- padding:0px;
- background-color: #fff;
- position:absolute;
- top:0px; left:0px;
- border:none;
+ width:100%;
+ height:100%;
+ padding:0px;
+ background-color: #fff;
+ position:absolute;
+ top:0px; left:0px;
+ border:none;
}
</style>
-
+
</head>
<body>
$banner()$
@@ -46,26 +48,26 @@
<div id="loghead"></div>
</div>
- </div>
- <div id="messagePane">
- <div id="messageList">
- <iframe src="/static/search/browser.html" allowtransparency="true" scrolling="auto" ></iframe>
- </div>
-
+ </div>
+ <div id="messagePane">
+ <div id="messageList">
+ <iframe src="/static/search/browser.html" allowtransparency="true" scrolling="auto" ></iframe>
</div>
- </div>
- </div>
+
+ </div>
+ </div>
</div>
</div>
</div>
-
- </div>
- <div id="footerc">
- <p>
- $footer()$</p>
- <p>
- </p>
- </div>
- </body>
+</div>
+
+</div>
+<div id="footerc">
+ <p>
+ $footer()$</p>
+ <p>
+ </p>
+</div>
+</body>
</html>
diff --git a/template/chat.st b/template/chat.st
index 239f5b9..8c290b7 100644
--- a/template/chat.st
+++ b/template/chat.st
@@ -18,6 +18,7 @@ $endif$
var Nick = $json_user_nick$;
var Room = $json_room_key$;
var Timestamp = $timestamp$;
+ var Version = $version$;
$if(isadmin)$
var IsAdmin = true;
$else$
diff --git a/template/head.st b/template/head.st
index 7bd71ec..93088ab 100644
--- a/template/head.st
+++ b/template/head.st
@@ -5,6 +5,7 @@
<script type="text/javascript" src="/static/js/pichat.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui-1.8.effects.min.js"></script>
<script type="text/javascript" src="/static/js/sha1.js"></script>
+<script type="text/javascript" src="/static/js/cookie.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/reset.css">
<link rel="stylesheet" type="text/css" href="/static/css/header.css">
$if(!user_nick)$
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>
+
+
+