mirror of
https://github.com/cryptosharks131/lndg.git
synced 2026-08-16 13:00:40 +02:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %} {{ block.super }} - Autopilot{% endblock %}
|
|
{% block content %}
|
|
{% load humanize %}
|
|
{% if autopilot %}
|
|
<div class="w3-container w3-padding-small">
|
|
<h2><a href="/autopilot/">Autopilot Logs</a></h2>
|
|
<table class="w3-table-all w3-centered w3-hoverable">
|
|
<tr>
|
|
<th>Timestamp</th>
|
|
<th>Channel ID</th>
|
|
<th>Peer Alias</th>
|
|
<th>Setting</th>
|
|
<th>Old Value</th>
|
|
<th>New Value</th>
|
|
</tr>
|
|
{% for log in autopilot %}
|
|
<tr>
|
|
<td title="{{ log.timestamp }}">{{ log.timestamp|naturaltime }}</td>
|
|
<td><a href="/channel?={{ log.chan_id }}" target="_blank">{{ log.chan_id }}</a></td>
|
|
<td><a href="/autopilot?={{ log.chan_id }}">{% if log.peer_alias == '' %}---{% else %}{{ log.peer_alias }}{% endif %}</a></td>
|
|
<td>{{ log.setting }}</td>
|
|
<td>{{ log.old_value }}</td>
|
|
<td {% if log.new_value == 1 %}style="background-color: rgba(46,160,67,0.15)"{% else %}style="background-color: rgba(248,81,73,0.15);"{% endif %}>{{ log.new_value }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
{% if not autopilot %}
|
|
<div class="w3-container w3-padding-small">
|
|
<center><h1>No autopilot logs to see here yet!</h1></center>
|
|
<center><h6>Experimental. This will allow LNDg to automatically act upon the suggestions found <a href="/actions" target="_blank">here</a>.</h6></center>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|