diff options
Diffstat (limited to 'shardweb/lib/templates/layout')
-rw-r--r-- | shardweb/lib/templates/layout/app.html.eex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shardweb/lib/templates/layout/app.html.eex b/shardweb/lib/templates/layout/app.html.eex index d96bdeb..6cedcaf 100644 --- a/shardweb/lib/templates/layout/app.html.eex +++ b/shardweb/lib/templates/layout/app.html.eex @@ -61,7 +61,7 @@ <b class="caret"></b> </a> <ul class="dropdown-menu message-dropdown"> - <%= for {id, %SApp.Chat.PrivChat.Manifest{pk_list: pk_list}, pid} <- sur do %> + <%= for {_id, %SApp.Chat.PrivChat.Manifest{pk_list: pk_list}, pid} <- sur do %> <li class="message-preview"> <a href="<%= chat_path(@conn, :privchat, str_of_pk_list(@conn, pk_list)) %>"> <div class="media"> @@ -137,7 +137,7 @@ <%= for {id, %SApp.Chat.Manifest{channel: name}, pid} <- shard_list() do %> <li class="<%= if @shard == id do "custom_active" else "" end %>"> <a href="<%= chat_path(@conn, :chat, name) %>"> - <%= if GenServer.call(pid, :has_unread) != nil do %> + <%= if SApp.Chat.has_unread?(pid) != nil do %> <span class="have_unread">#<%= name %></span> <% else %> #<%= name %> @@ -159,7 +159,7 @@ <%= for {id, %SApp.Chat.PrivChat.Manifest{pk_list: pk_list}, pid} <- shard_list() do %> <li class="<%= if id == @shard do "custom_active" else "" end %>"> <a href="<%= chat_path(@conn, :privchat, str_of_pk_list(@conn, pk_list)) %>"> - <%= if GenServer.call(pid, :has_unread) != nil do %> + <%= if SApp.Chat.has_unread?(pid) != nil do %> <span class="have_unread"><%= nicks_of_pk_list(@conn, pk_list) %></span> <% else %> <%= nicks_of_pk_list(@conn, pk_list) %> @@ -171,7 +171,7 @@ <% end %> </li> <li class="<%= if @view_module == ShardWeb.PageView and @view_template == "peer_list.html" do "active" else "" end %>"> - <a href="<%= page_path(@conn, :peer_list) %>"><i class="fa fa-fw fa-globe"></i> Peer list</a> + <a href="<%= page_path(@conn, :peer_list) %>"><i class="fa fa-fw fa-server"></i> Peer list</a> </li> <li> <a href="#"><i class="fa fa-fw fa-gear"></i> Settings</a> |