lndg/gui/templates/autofees.html
2023-02-22 12:27:08 -05:00

36 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title %} {{ block.super }} - Autofees{% endblock %}
{% block content %}
{% load humanize %}
{% if autofees %}
<div class="w3-container w3-padding-small">
<h2><a href="/autofees/">Our Fees 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 autofees %}
<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="/autofees?={{ 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 > log.old_value %}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 autofees %}
<div class="w3-container w3-padding-small">
<center><h1>No our fees logs to see here yet!</h1></center>
<center><h6>Experimental. This will allow LNDg to automatically act upon the suggestions found <a href="/fees" target="_blank">here</a>.</h6></center>
</div>
{% endif %}
{% endblock %}