<% if (!ob.read) { %>
<% } %>
<% if(ob.type == "order confirmation") { %>
<%= polyglot.t('NotificationOrderConfirmed') %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "DISPUTE_CLOSE" || ob.type == "dispute_close") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationDisputeClosed',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationDisputeClosed',{name: ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "DISPUTE_OPEN" || ob.type == "dispute_open") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationDispute',{name:ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationDispute',{name:ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "ORDER") { %>
<% if(ob.username) { %> <%= polyglot.t('NotificationNewTransactionMessage',{name:ob.username}) %> <% }else{ %> <%= polyglot.t('NotificationNewTransactionMessage',{name:ob.sender}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "payment received") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationPaymentSent',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationPaymentSent',{name: ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "rating received") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationRatingRecieved',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationRatingRecieved',{name: ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "new order") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationOrderFor',{name: ob.handle, title: ob.title}) %> <% }else{ %> <%= polyglot.t('NotificationOrderFor',{name: ob.guid, title: ob.title}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "follow") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationFollow',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationFollow',{name: ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else if(ob.type == "refund") { %>
<% if(ob.handle) { %> <%= polyglot.t('NotificationRefund',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationRefund',{name: ob.guid}) %> <% } %>
<%= ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A') %>
<% } else { %> <%= polyglot.t('NotificationTitle',{title: ob.title}) %>
<% if(ob.username){ %> <%= polyglot.t('NotificationFrom',{name: ob.handle}) %> <% } else if(ob.handle){ %> <%= polyglot.t('NotificationFrom',{name: ob.handle}) %> <% } else if(ob.sender){ %> <%= polyglot.t('NotificationFrom',{name: ob.handle}) %> <% }else{ %> <%= polyglot.t('NotificationFrom',{name: ob.guid}) %> <% } %>
<%= polyglot.t('NotificationType',{type: ob.type}) %>
<%= polyglot.t('NotificationTime', {time: ob.moment(new Date(ob.timestamp*1000)).locale(window.lang).format('MMM D, h:mm A')}) %>
<% if (ob.order_id) { %>
<%= ob.order_id %>
<% } %> <% } %>