|
1 | | -<div class="width100 cursorDefault"> |
| 1 | +<div class="width100 cursorDefault positionWrapper"> |
| 2 | + <% if (ob.unread) { %> |
| 3 | + <div class="highlightRow"></div> |
| 4 | + <% } %> |
2 | 5 | <div class="rowItem padding20"> |
3 | 6 | <div class="flexRow"> |
4 | 7 | <div class="width100"> |
|
56 | 59 | </tr> |
57 | 60 | </table> |
58 | 61 | <div class="floatRight width200"> |
59 | | - <div class="btn btn-txt height36 custCol-secondary js-orderShort marginBottom5 width100"> |
60 | | - <%= polyglot.t('transactions.OrderDetails') %> |
| 62 | + <% if(ob.transactionType == "purchases" && ob.status == 0){ %> |
| 63 | + <div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 js-orderShort"> |
| 64 | + <%= polyglot.t('transactions.PayPurchase') %> |
61 | 65 | </div> |
62 | | - <% if(ob.transactionType == "purchase" && ob.status == 0){ %> |
63 | | - <div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 js-orderShort"> |
64 | | - <%= polyglot.t('transactions.PayPurchase') %> |
65 | | - </div> |
66 | | - <% } else if(ob.transactionType == "sale" && ob.status == 1){ %> |
67 | | - <div class="btn btn-txt height36 custCol-secondary js-orderShortConfirm marginBottom5 width100"> |
| 66 | + <% } else if(ob.transactionType == "sales" && ob.status == 1){ %> |
| 67 | + <div class="btn btn-txt height36 custCol-secondary js-orderShortConfirm marginBottom5 width100"> |
68 | 68 | <% if (ob.contract_type == "digital good" || ob.contract_type == "service") { %> |
69 | | - <%= polyglot.t('transactions.ConfirmOrder') %> |
| 69 | + <%= polyglot.t('transactions.ConfirmOrder') %> |
70 | 70 | <% } else { %> |
71 | | - <%= polyglot.t('transactions.MarkAsShipped') %> |
72 | | - <% } %> |
73 | | - </div> |
74 | | - <% } else if(ob.transactionType == "purchase" && ob.status == 2){ %> |
75 | | - <div class="btn btn-txt height36 custCol-secondary js-orderShortComplete marginBottom5 width100"> |
76 | | - <%= polyglot.t('transactions.CompleteOrder') %> |
| 71 | + <%= polyglot.t('transactions.MarkAsShipped') %> |
| 72 | + <% } %> |
| 73 | + </div> |
| 74 | + <% } else if(ob.transactionType == "purchases" && ob.status == 2){ %> |
| 75 | + <div class="btn btn-txt height36 custCol-secondary js-orderShortComplete marginBottom5 width100"> |
| 76 | + <%= polyglot.t('transactions.CompleteOrder') %> |
| 77 | + </div> |
| 78 | + <% } else { %> |
| 79 | + <div class="btn btn-txt height36 custCol-secondary js-orderShort marginBottom5 width100"> |
| 80 | + <%= polyglot.t('transactions.OrderDetails') %> |
77 | 81 | </div> |
78 | 82 | <% } %> |
| 83 | + <div class="btn btn-txt height36 custCol-secondary marginBottom5 width100 positionWrapper js-orderShortDiscusson <% if(!ob.unread){ %> hide <% } %>" |
| 84 | + data-order="<%= ob.order_id %>"> |
| 85 | + <i class="ion-chatbubbles"></i> <%= polyglot.t('Discussion') %> |
| 86 | + <div class="badge js-unreadBadge" data-count="<%= ob.unread || 0 %>"></div> |
| 87 | + </div> |
79 | 88 | </div> |
80 | 89 | </div> |
81 | 90 | </div> |
|
0 commit comments