Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
MOBILE-783 messages: Recent messages styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Dec 26, 2014
1 parent fb89545 commit c325253
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion plugins/messages/contacts.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<% var types = ["online", "offline", "strangers"]; %>
<% var displayed = []; %>
<% types.forEach(function(type) { %>
<% if (!contacts[type].length) return; %>
<h3>
<% if (type == "online") { %>
<%= MM.lang.s("onlinecontacts", "core", contacts[type].length) %>
Expand Down
12 changes: 8 additions & 4 deletions plugins/messages/recent.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<a href="#messages/contacts"><img src="img/ico-contacts.png"></a>
</script>
<div class="panel-container">
<% if (messages.length > 0) {%>
<div class="path-messages recent-messages">
<% if (messages.length > 0) {%>
<ul class="nav nav-v">
<% _.each(messages, function(message) { %>
<% if (message.user != MM.config.current_site.userid) { %>
Expand Down Expand Up @@ -32,8 +32,12 @@
<% } %>
<% }); %>
</ul>
<% } else { %>
<h3><strong><%= MM.lang.s("nomessagesfound") %></strong></h3>
<% } %>
</div>
<% } else { %>
<div class="messages">
<div class="no-content">
<p><%= MM.lang.s("nomessagesfound") %></p>
</div>
</div>
<% } %>
</div>

0 comments on commit c325253

Please sign in to comment.