blob: 28cc9e601ddca743e33cbd90d0aca8113050a644 (
plain) (
tree)
|
|
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<%= if @public do %>
#<%= @chan %>
<small>public chat room</small>
<% else %>
#<%= @nicks %>
<small>private chat</small>
<% end %>
</h1>
<ol class="breadcrumb">
<%= if @public do %>
<li>
<i class="fa fa-comments"></i> Chat rooms
</li>
<li class="active">
<i class="fa fa-hashtag"></i> <%= @chan %>
</li>
<% else %>
<li>
<i class="fa fa-comments"></i> Private chat
</li>
<li class="active">
<i class="fa fa-user"></i> <%= @nicks %>
</li>
<% end %>
</ol>
</div>
</div>
<!-- /.row -->
<%= render ShardWeb.LayoutView, "flashes.html", assigns %>
<!-- 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>
|