et="_blank">${p.payment_hash.substring(0,7)}</a>`}),
      "rebal_chan": p => ({innerHTML: (p.rebal_chan || '').length > 0 ? 'Yes' : 'No'}),
      "keysend_preimage": p => ({innerHTML: p.keysend_preimage ? 'Yes' : 'No'})
      }
    )
    let {creation_date, value, keysend_preimage} = payments_template
    const invoices_template = Object.assign({}, {creation_date}, {
      "settle_date": i => ({innerHTML: formatDate(i.settle_date), title: adjustTZ(i.settle_date)})
      }, {value}, {
      "amt_paid": i =>