<% var notificationCount = Math.max( 0, Math.min( 5, notifications.length ) ); %> <% if ( notifications.length > 0 ) { %> <% var notification; %> <% for ( var ni = 0; ni < notificationCount; ni++ ) { %> <% notification = notifications[ ni ]; %> <% } %> <% } else { %>

<%= _lc( 'NOTIFICATION_EMPTY' ) %>

<% } %>