aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/shard_web/templates/room/show.html.eex
blob: bc1641a87faf34bc99a9fd6423885902159ac8ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      <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="row">
  <div class="col-xs-3">
    <strong><%= @name %></strong>
  </div>
  <div class="col-xs-9">
    <input type="text" id="msg" class="form-control" placeholder="Your Message" autofocus>
  </div>
</div>