Skip to content

Commit

Permalink
Channel point as hover for closing channels
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptosharks131 committed Aug 23, 2022
1 parent 68cbce6 commit 023056e
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions gui/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ <h2>Pending Close Channels</h2>
<tr>
<th>Channel ID</th>
<th>Peer Alias</th>
<th width=20%>Channel Point</th>
<th>Capacity</th>
<th>Local Balance</th>
<th>Remote Balance</th>
Expand All @@ -336,11 +335,8 @@ <h2>Pending Close Channels</h2>
</tr>
{% for channel in pending_closed %}
<tr>
<td><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.channel_point }}"><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.remote_node_pub }}"><a href="{{ graph_links }}/{{ network }}node/{{ channel.remote_node_pub }}" target="_blank">{% if channel.alias == '' %}{{ channel.remote_node_pub|slice:":12" }}{% else %}{{ channel.alias }}{% endif %}</a></td>
{% with funding_txid=channel.channel_point|slice:":-2" %}
<td><a href='{{ network_links }}/{{ network }}tx/{{ funding_txid }}' target="_blank">{{ channel.channel_point }}</a></td>
{% endwith %}
<td>{{ channel.capacity|intcomma }}</td>
<td>{{ channel.local_balance|intcomma }}</td>
<td>{{ channel.remote_balance|intcomma }}</td>
Expand All @@ -359,7 +355,6 @@ <h2>Pending Force Close Channels</h2>
<tr>
<th>Channel ID</th>
<th>Peer Alias</th>
<th width=20%>Channel Point</th>
<th>Capacity</th>
<th>Local Balance</th>
<th>Remote Balance</th>
Expand All @@ -369,11 +364,8 @@ <h2>Pending Force Close Channels</h2>
</tr>
{% for channel in pending_force_closed %}
<tr>
<td><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.channel_point }}"><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.remote_node_pub }}"><a href="{{ graph_links }}/{{ network }}node/{{ channel.remote_node_pub }}" target="_blank">{% if channel.alias == '' %}{{ channel.remote_node_pub|slice:":12" }}{% else %}{{ channel.alias }}{% endif %}</a></td>
{% with funding_txid=channel.channel_point|slice:":-2" %}
<td><a href='{{ network_links }}/{{ network }}tx/{{ funding_txid }}' target="_blank">{{ channel.channel_point }}</a></td>
{% endwith %}
<td>{{ channel.capacity|intcomma }}</td>
<td>{{ channel.local_balance|intcomma }}</td>
<td>{{ channel.remote_balance|intcomma }}</td>
Expand All @@ -392,7 +384,6 @@ <h2>Channels Waiting To Close</h2>
<tr>
<th>Channel ID</th>
<th>Peer Alias</th>
<th width=20%>Channel Point</th>
<th>Capacity</th>
<th>Local Balance</th>
<th>Remote Balance</th>
Expand All @@ -402,11 +393,8 @@ <h2>Channels Waiting To Close</h2>
</tr>
{% for channel in waiting_for_close %}
<tr>
<td><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.channel_point }}"><a href="/channel?={{ channel.chan_id }}" target="_blank">{{ channel.chan_id }}</a></td>
<td title="{{ channel.remote_node_pub }}"><a href="{{ graph_links }}/{{ network }}node/{{ channel.remote_node_pub }}" target="_blank">{% if channel.alias == '' %}{{ channel.remote_node_pub|slice:":12" }}{% else %}{{ channel.alias }}{% endif %}</a></td>
{% with funding_txid=channel.channel_point|slice:":-2" %}
<td><a href='{{ network_links }}/{{ network }}tx/{{ funding_txid }}' target="_blank">{{ channel.channel_point }}</a></td>
{% endwith %}
<td>{{ channel.capacity|intcomma }}</td>
<td>{{ channel.local_balance|intcomma }}</td>
<td>{{ channel.remote_balance|intcomma }}</td>
Expand Down

0 comments on commit 023056e

Please sign in to comment.