blob: e7b1166d8877cc0f0feee00403c1b88ed761dbd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<ul class="nav nav-tabs">
<%= for {_, %SApp.Chat.Manifest{channel: name}, _} <- shard_list() do %>
<li class="<%= if name == @room do "active" else "" end %>">
<a href="<%= room_path(@conn, :show, name) %>">#<%= name %></a>
</li>
<% end %>
<li>
<a href="#" onclick="if(new_room=prompt('Enter name of room to join, without preceding # sign:'))window.location.href='/room/'+new_room;">Join room</a>
</li>
</ul>
<!-- The list of messages will appear here: -->
<ul id='msg-list' class='row' style='list-style: none; min-height:400px; padding: 10px; max-height: 400px; overflow: scroll'></ul>
<div class="form-horizontal">
<div class="form-group">
<div class="col-sm-2 control-label">
<strong><<%= @nick %>></strong>
</div>
<div class="col-sm-10">
<input type="text" id="msg" class="form-control" placeholder="Your Message" autofocus>
</div>
</div>
</div>
|