<!DOCTYPE html>
{% load static %}
<html>
  <style>
  </style>
  <script id="api" data-token="{{csrf_token}}" src="{% static 'api.js' %}"></script>
  <script src="{% static 'sort_table.js' %}"></script>
  <script src="{% static 'helpers.js' %}"></script>
  <script>
    const base_ch_template = {
      "remote_pubkey": ch => ({innerHTML: `<a href="/channel?=${ch.chan_id}" target="_blank">${ch.short_chan_id}</a>`, title: `${ch.funding_txid}:${ch.output_index}`}),
      "chan_id": ch => ({innerHTML: `<a href="{