aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates/chat/chat.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/templates/chat/chat.html.eex')
-rw-r--r--shardweb/lib/templates/chat/chat.html.eex31
1 files changed, 23 insertions, 8 deletions
diff --git a/shardweb/lib/templates/chat/chat.html.eex b/shardweb/lib/templates/chat/chat.html.eex
index 86c2fb6..8a43acf 100644
--- a/shardweb/lib/templates/chat/chat.html.eex
+++ b/shardweb/lib/templates/chat/chat.html.eex
@@ -2,17 +2,32 @@
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
- #<%= @room %>
- <small>public chat room</small>
+ <%= if @public do %>
+ #<%= @chan %>
+ <small>public chat room</small>
+ <% else %>
+ #<%= @nicks %>
+ <small>private chat</small>
+ <% end %>
</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>
+
+ <%= if @public do %>
+ <li>
+ <i class="fa fa-comments"></i> Chat rooms
+ </li>
+ <li class="active">
+ <i class="fa fa-comments"></i> #<%= @chan %>
+ </li>
+ <% else %>
+ <li>
+ <i class="fa fa-user"></i> Private chat
+ </li>
+ <li class="active">
+ <i class="fa fa-comments"></i> <%= @nicks %>
+ </li>
+ <% end %>
</ol>
</div>
</div>