~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/tornado/demos/chat/templates/index.html

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
 
3
  <head>
 
4
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
 
5
    <title>Tornado Chat Demo</title>
 
6
    <link rel="stylesheet" href="{{ static_url("chat.css") }}" type="text/css"/>
 
7
  </head>
 
8
  <body>
 
9
    <div id="nav">
 
10
      <b>{{ escape(current_user["name"]) }}</b> -
 
11
      <a href="/auth/logout">{{ _("Sign out") }}</a>
 
12
    </div>
 
13
    <div id="body">
 
14
      <div id="inbox">
 
15
        {% for message in messages %}
 
16
          {% include "message.html" %}
 
17
        {% end %}
 
18
      </div>
 
19
      <div id="input">
 
20
        <form action="/a/message/new" method="post" id="messageform">
 
21
          <table>
 
22
            <tr>
 
23
              <td><input name="body" id="message" style="width:500px"/></td>
 
24
              <td style="padding-left:5px">
 
25
                <input type="submit" value="{{ _("Post") }}"/>
 
26
                <input type="hidden" name="next" value="{{ request.path }}"/>
 
27
                {{ xsrf_form_html() }}
 
28
              </td>
 
29
            </tr>
 
30
          </table>
 
31
        </form>
 
32
      </div>
 
33
    </div>
 
34
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
 
35
    <script src="{{ static_url("chat.js") }}" type="text/javascript"></script>
 
36
  </body>
 
37
</html>