diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-12 15:52:42 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-12 15:52:42 +0200 |
commit | 0d358f6f699a5ce04ffe1bccf4f375b5f321391c (patch) | |
tree | b90a1093b3ac0cd1e7d3643abb34e87078b6072e /shardweb/lib/templates/chat | |
parent | 1e91dc596fd2f7fdd96b7fd2fc50724f93e46529 (diff) | |
download | shard-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.eex | 31 |
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> |