summaryrefslogtreecommitdiff
path: root/template/topic_list.st
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-03-15 22:35:40 -0400
committerScott Ostler <sostler@deathmachine.local>2010-03-15 22:35:40 -0400
commitf475c0a8d00fa860c53fb28b89ad8ff6eacb5352 (patch)
tree9fdb0cd0bea85eb1dde58462f0cb233944306f20 /template/topic_list.st
parent5ccd9bb3bc8226dce71d5742bc612bcd65f5b17d (diff)
src/origin_check.clj
Diffstat (limited to 'template/topic_list.st')
-rw-r--r--template/topic_list.st57
1 files changed, 57 insertions, 0 deletions
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>