blob: dc7199e47771baab8cc49ba7e3f858ae19531826 (
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
|
<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>
|