orderCount: function countOffersOrders() {
   const type = Template.instance().data.type;
   if (type && type === 'lastTrades') {
     return parseInt(Blaze._globalHelpers.countLastTrades(), 10);
   }
   return parseInt(Blaze._globalHelpers.countOffers(this.priceClass), 10);
 },
 'click tr': function offer(event, templateInstance) {
   event.preventDefault();
   if (templateInstance.data.canAccept) {
     const orderId = templateInstance.data.order._id;
     /* eslint-disable no-underscore-dangle */
     if (Blaze._globalHelpers.isBuyEnabled()) {
       $('#offerModal').modal('show');
       Session.set('selectedOffer', orderId);
     } else {
       const order = {
         id: orderId,
         type: templateInstance.data.section,
       };
       Session.set('selectedOrder', order);
     }
   }
   if (templateInstance.data.canOpenTxLink) {
     window.open(txHref(templateInstance.data.order.transactionHash), '_blank');
   }
 },