aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates/chat
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-12 15:52:42 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-12 15:52:42 +0200
commit0d358f6f699a5ce04ffe1bccf4f375b5f321391c (patch)
treeb90a1093b3ac0cd1e7d3643abb34e87078b6072e /shardweb/lib/templates/chat
parent1e91dc596fd2f7fdd96b7fd2fc50724f93e46529 (diff)
downloadshard-0d358f6f699a5ce04ffe1bccf4f375b5f321391c.tar.gz
shard-0d358f6f699a5ce04ffe1bccf4f375b5f321391c.zip
Private chat interface
Diffstat (limited to 'shardweb/lib/templates/chat')
-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>