-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathhome.html
38 lines (38 loc) · 1002 Bytes
/
home.html
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
<div class="row-fluid" id="message-board">
<div class="col-md-12">
<table class="table table-bordered table-striped">
<caption>Message Board</caption>
<thead>
<tr>
<th class="span2">Username</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<%
if (typeof models != 'undefined' && models.length > 0) {
_.each(models, function (value, key, list) { %>
<tr>
<td><%= value.attributes.username %></td>
<td><%= value.attributes.message %></td>
</tr>
<% })
}
else { %>
<tr>
<td colspan="2">No messages yet</td>
</tr>
<% } %>
</tbody>
</table>
</div>
</div>
<div class="row-fluid" id="new-message">
<div class="col-md-12">
<form class="well form-inline">
<input type="text" name="username" class="input-small" placeholder="Username" />
<input type="text" name="message" class="input-small" placeholder="Message Text" />
<a id="send" class="btn btn-primary">SEND</a>
</form>
</div>
</div>