aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/shard_web/templates/room
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-11 20:14:47 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-11 20:14:54 +0200
commit6dcc2eefc3c8db0cadd7300536527dbd1905fa48 (patch)
tree3eb00337e1dd7bc47680b9fa16ec721eb216f4a9 /shardweb/lib/shard_web/templates/room
parent123fbcf6abcfe61ef65cc82f1d22843dde722b23 (diff)
downloadshard-6dcc2eefc3c8db0cadd7300536527dbd1905fa48.tar.gz
shard-6dcc2eefc3c8db0cadd7300536527dbd1905fa48.zip
Template changes
Diffstat (limited to 'shardweb/lib/shard_web/templates/room')
-rw-r--r--shardweb/lib/shard_web/templates/room/show.html.eex32
1 files changed, 22 insertions, 10 deletions
diff --git a/shardweb/lib/shard_web/templates/room/show.html.eex b/shardweb/lib/shard_web/templates/room/show.html.eex
index e7b1166..75960b4 100644
--- a/shardweb/lib/shard_web/templates/room/show.html.eex
+++ b/shardweb/lib/shard_web/templates/room/show.html.eex
@@ -1,13 +1,25 @@
- <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>
+<!-- Page Heading -->
+<div class="row">
+ <div class="col-lg-12">
+ <h1 class="page-header">
+ #<%= @room %>
+
+ </h1>
+ <ol class="breadcrumb">
+ <li>
+ <i class="fa fa-comments"></i> Chat rooms
+ </li>
+ <li class="active">
+ <i class="fa fa-comments"></i> #<%= @room %>
+ </li>
+ </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>