<% if (notifications.length > 0) { %> <% var notifText; %> <% _.each(notifications, function(notification) {%>

<%= notification.userfromfullname %> <%= MM.util.timestampToUserDate(notification.timecreated) %>

<% if (notification.notification) { %> <% if (notification.contexturl && notification.contexturl.indexOf("/mod/forum/")) { %> <% notifText = MM.plugins.notifications._format(notification.smallmessage); %> <% } else { %> <% notifText = MM.plugins.notifications._format(notification.fullmessage); %> <% } %>

<%= notifText %>

  <%= MM.plugins.notifications._getActionLinks(notification) %>
<% } else { %>

<%= MM.plugins.notifications._format(notification.smallmessage) %>

<% if (notification.useridfrom) { %> Reply <% } %>
<% } %>
<% }); %> <% } else { %>

<%= MM.lang.s("therearentnotificationsyet") %>

<% } %>