This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Find file Copy path
d7c2915 Mar 17, 2016
1 contributor

Users who have contributed to this file

41 lines (39 sloc) 1.22 KB
{% extends "base.html" %}
{% block content %}
{% load staticfiles %}
<h1>{{ room.label }}</h1>
<p class="quiet">
Anyone with this URL can join the room and chat:
<code>{{ request.scheme }}://{{ request.get_host }}/{{ room.label }}</code>
<label for="handle">Your name:</label>
<input id="handle" type="text" placeholder="handle">
<form id="chatform">
<table id="chat">
{% for message in messages %}
<td>{{ message.formatted_timestamp }}</td>
<td>{{ message.handle }}</td>
<td>{{ message.message }}</td>
{% endfor %}
<td>Say something:</td>
<td colspan=2>
<input id="message" type="text" placeholder="message">
<button type="submit" id="go">Say it</button>
{% endblock content %}
{% block afterbody %}
<script type="text/javascript" src='{% static "jquery-1.12.1.min.js" %}'></script>
<script type="text/javascript" src='{% static "reconnecting-websocket.min.js" %}'></script>
<script type="text/javascript" src='{% static "chat.js" %}'></script>
{% endblock afterbody %}