summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/browser.st16
-rwxr-xr-xtemplate/chat.st12
-rw-r--r--template/directory.st32
-rw-r--r--template/topic_list.st57
4 files changed, 93 insertions, 24 deletions
diff --git a/template/browser.st b/template/browser.st
index e172d15..721bb98 100755
--- a/template/browser.st
+++ b/template/browser.st
@@ -18,17 +18,23 @@
var growlize = true;
</script>
-
<style>
iframe {
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;
}
</style>
-
</head>
<body>
$banner()$
@@ -43,9 +49,9 @@
</div>
<div id="messagePane">
<div id="messageList">
- <iframe src="/static/search/browser.html" style="width:100%;height:100%;padding:0px;background-color: #fff; position:absolute; top:0px; left:0px; border:none; allowtransparency="true" scrolling="auto" ></iframe>
-
-
+ <iframe src="/static/search/browser.html"
+ allowtransparency="true"
+ scrolling="auto" ></iframe>
</div>
</div>
diff --git a/template/chat.st b/template/chat.st
index 9dc7d3a..5ad8113 100755
--- a/template/chat.st
+++ b/template/chat.st
@@ -16,8 +16,6 @@
var IsAdmin = false;
$endif$
</script>
- <script type="text/javascript">
-</script>
<script src="/static/away.js"></script>
<script src="/static/js/ajaxupload.js"></script>
<script>
@@ -34,6 +32,13 @@ function pop(url)
}
</script>
+ <style>
+ #topic {
+ z-index: 5000;
+ display: inline;
+ background-color: white;
+ }
+ </style>
</head>
<body onload="MM_preloadImages('/static/thumbs_up_sm.gif')">
$banner()$
@@ -58,8 +63,7 @@ function pop(url)
<div class="msgDiv oldmsg" id="message-$m.message_id$"><b>
<a href="/u/$m.nick$">$m.nick$</a>: </b>
- <span class="content">$m.content$
-</a><span>
+ <span class="content">$m.content$<span>
<div id="faving" style="display:none;">
diff --git a/template/directory.st b/template/directory.st
index bf6979c..dc2deec 100644
--- a/template/directory.st
+++ b/template/directory.st
@@ -10,9 +10,8 @@
</head>
<body>
$banner()$
- <div id="chatrap">
-
-
+ <div id="chatrap">
+
<div id="log">
<div id="loghead"></div>
<br>
@@ -21,18 +20,21 @@
<br>
<center>
- <h2> &#x272D; &#x272D; DUMP STARS &#x272D; &#x272D;</h2>
- <div id="lolbanner">
- <img src="/static/welcomebanner.gif">
- </div>
-
- </center>
-
- $if(users)$
- $users:{ u |
- <div class="logged-dump">
- <a href="/u/$u.nick$">
- <b> $u.nick$</b>
+ <h2> &#x272D; &#x272D; DUMP STARS &#x272D; &#x272D;</h2>
+ <div id="lolbanner">
+ <img src="/static/welcomebanner.gif">
+ </div>
+
+ </center>
+
+ $if(notloaded)$
+ <div>Sorry, the directory is being updated. Refresh in a minute!</div>
+ $elseif(users)$
+
+ $users:{ u |
+ <div class="logged-dump">
+ <a href="/u/$u.nick$">
+ <b> $u.nick$</b>
$if(u.avatar)$
<div id="logavatar"> <img height="50" width="50" src="$u.avatar$"></img></div>
$endif$
diff --git a/template/topic_list.st b/template/topic_list.st
new file mode 100644
index 0000000..dc7199e
--- /dev/null
+++ b/template/topic_list.st
@@ -0,0 +1,57 @@
+<html>
+ <head>
+ <title>Topic List</title>
+ $head()$
+ <script src="/static/js/topiclist.js"></script>
+ <style>
+ #main {
+ margin: 75px 2em 0 2em;
+ }
+ #main hr { margin-bottom: 0.5em; }
+ #main label {
+ display: inline-block;
+ width: 150px;
+ }
+ #main .deadline {
+ width: 100px;
+ }
+ </style>
+ </head>
+ <body>
+ $banner()$
+ <div id="main">
+ $rooms:{ r |
+ <div id="room-$r.key$" class="room-section">
+ <h1>$r.key$</h1>
+ <hr>
+
+ $if(r.topic)$
+ <b>$r.topic$</b> by <b>$r.maker$</b> expires <b>$r.deadline$ </b>
+ $else$
+ <span>No current topic!</span>
+ $endif$
+ <br><br>
+ <div><label>New Topic</label><input type="text" name="topic"></div>
+ <div>
+ <label>Expires in</label>
+ <input type="text" class="deadline" name="hours"></input> hours,
+ <input type="text" class="deadline" name="minutes"></input>
+ <span>minutes</span>
+ <span class="deadline-update">
+ </div>
+ <div><label>Maker</label><input type="text" name="maker" value="$user_nick$"></div>
+ <br>
+ <div>
+ <input class="set-topic" type="submit" value="Set new topic!">
+ $if(r.topic)$
+ <input class="end-topic" type="submit" value="End topic">
+ $endif$
+ <img class="spinner" src="/static/spinner.gif" style="display: none"/>
+ </div>
+ <br><br><br><br>
+ </div>
+ }$
+ </div>
+
+ </body>
+</html>