aboutsummaryrefslogblamecommitdiff
path: root/shardweb/lib/shard_web/templates/room/show.html.eex
blob: e7b1166d8877cc0f0feee00403c1b88ed761dbd4 (plain) (tree)
1
2
3
4
5
                               



                                                                                








                                                                                                                                                                 







                                                                                            

        
      <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>&lt;<%= @nick %>&gt;</strong>
    </div>
    <div class="col-sm-10">
      <input type="text" id="msg" class="form-control" placeholder="Your Message" autofocus>
    </div>
  </div>
</div>