aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates/chat/chat.html.eex
blob: 947e4c367744735a3b5b7ba864c2a2b4e518a6bd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!-- Page Heading -->
<div class="row">
  <div class="col-lg-12">
    <h1 class="page-header">
      <%= if @public do %>
        #<%= @chan %>
      <% else %>
        <%= @nicks %>
      <% end %>
      <small class="shard_uri"><%= @manifest |> ShardURI.from_manifest %></small>


    </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>&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>