<% var flagStatus = false; if(ob.transactionType == "purchases"){ flagStatus = ob.status == 2 || ob.status > 3; } else if(ob.transactionType == "sales") { flagStatus = ob.status == 1 || ob.status > 2; } else { flagStatus = true; } if (ob.unread || flagStatus && ob.status_changed) { %>
<% } %>
<%= ob.order_date %> — <%= polyglot.t('transactions.Order') %> #<%= ob.order_id %>
style="background-image: url(<%= ob.imageUrl %>), url(imgs/defaultItem.png);"> <% } else { %> style="background-image: url(imgs/defaultItem.png);"> <% } %>
<%= ob.status %>
<%= polyglot.t('Listing') %>
<%= ob.title %>
<%= polyglot.t('transactions.OrderTotal') %> <%= ob.formatBitcoin(ob.btc_total) %> <% if(ob.cCode != "BTC"){ %> (<%= ob.displayPrice %>) <% } %>
<%= polyglot.t('transactions.OrderStatus') %> <%= polyglot.t('transactions.OrderStatus'+ob.status) %>
<% if(ob.vendor){ %> <%= polyglot.t('transactions.Vendor') %> <% } else if(ob.buyer) { %> <%= polyglot.t('transactions.Buyer') %> <% } %> <% if(ob.vendor){ %> <%= ob.vendor %> <% } else if(ob.buyer) { %> <%= ob.buyer %> <% } %>
<% if(ob.transactionType == "purchases" && ob.status == 0){ %>
<%= polyglot.t('transactions.PayPurchase') %>
<% } else if(ob.transactionType == "sales" && ob.status == 1){ %>
<% if (ob.contract_type == "digital good" || ob.contract_type == "service") { %> <%= polyglot.t('transactions.ConfirmOrder') %> <% } else { %> <%= polyglot.t('transactions.MarkAsShipped') %> <% } %>
<% } else if(ob.transactionType == "purchases" && ob.status == 2){ %>
<%= polyglot.t('transactions.CompleteOrder') %>
<% } else { %>
<%= polyglot.t('transactions.OrderDetails') %>
<% } %>
<%= polyglot.t('Discussion') %>