This repository has been archived by the owner. It is now read-only.
Permalink
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>
</p>
<p>
<label for="handle">Your name:</label>
<input id="handle" type="text" placeholder="handle">
</p>
<form id="chatform">
<table id="chat">
<tbody>
{% for message in messages %}
<tr>
<td>{{ message.formatted_timestamp }}</td>
<td>{{ message.handle }}</td>
<td>{{ message.message }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td>Say something:</td>
<td colspan=2>
<input id="message" type="text" placeholder="message">
<button type="submit" id="go">Say it</button>
</td>
</tfoot>
</table>
</form>
{% 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 %}