summaryrefslogtreecommitdiff
path: root/template/chat.st
blob: 330a1430c20e878829a573b22797a8f112df70ba (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
  <head>
    <title>dump.fm</title>
    $head()$
    <link rel="stylesheet" type="text/css" href="/static/pichat.css">
    <script>
      jQuery(document).ready(initChat);
      var Nick = $json_user_nick$;
      var Room = $json_room_key$;
      var Timestamp = $timestamp$;
      $if(isadmin)$
      var IsAdmin = true;
      $else$
      var IsAdmin = false;
      $endif$
    </script>
    
    $if(isadminroom)$
    <style>
      iframe {
          z-index: 50000;
          position: fixed;
          top: 300px;
          right: 25px;
      }
    </style>
    <script src="http://widgets.getclicky.com/tally/?site_id=170656&sitekey=736f7dd41a0612d8d50797c65768e71a&width=175&height=250&title=Visitors" type="text/javascript"></script>
    $endif$
    <script src="/static/away.js"></script>
    <script src="/static/js/ajaxupload.js"></script>
    <script>
      if (Nick) {
          jQuery(document).ready(function() {
              setupUpload('upload', Room);
          });
      }
    </script>
  </head>
  <body>
    $banner()$
    <div id="chatrap">
      <div id="logc">
        <div id="content">
          <div id="messagetabs"></div>
          <div id="rapper">
            <div id="loghead"></div>
          </div>
          <div id="userList">
            $users: { u |
            <div class="username"><a href="/u/$u.nick$">
		$if(u.avatar)$<img src="$u.avatar$" width="50" height="50">$endif$
                $u.nick$</a><br>
            </div>
	    }$
	  </div>          
          <div id="messagePane">
            <div id="messageList">
              $messages: { m |
              <div class="msgDiv oldmsg" id="message-$m.message_id$"><b>

              <a href="/u/$m.nick$">$m.nick$</a>: </b>
                <span class="content">$m.content$<span></div>
              }$
              <hr />
            </div>
            $if(user_nick)$
            <div id="msgInputDiv">
              <input id="msgInput" class="msgInput" type="input" />
              <input id="msgSubmit" type="submit" value="Send Image URL"
                     />
              <input id="upload" value="Upload" type="submit">   
            </div>
            $endif$
          </div>
        </div>        
      </div>
    </div>   
    <div id="footerc">
      <p>
        $footer()$
      <p>
    </div>
  </body>

</html>