User can control their own nodes: delete/expire

This commit is contained in:
2024-07-26 12:03:15 +02:00
parent facaaed9eb
commit 426c01ba6b
7 changed files with 90 additions and 16 deletions

View File

@ -23,8 +23,9 @@
<thead>
<tr>
<th>&nbsp;</th>
<th>last connect</th>
<th>last activity</th>
<th>online</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
@ -45,6 +46,22 @@
<td>
{{node.online | fancyBool | safe}}
</td>
<td class="no-sort">
{% if node.expireDate and not node.expired %}
<span data-toggle="tooltip" data-placement="right" title="expire/disconnect">
<a class="nodeco" href="{{ url_for('rest.expireNodeUser', nodeId=node.id) }}">
<i class="fas fa-plug"></i>
</a>
</span>
{% else %}
<i class="fas fa-plug disabled"></i>
{% endif %}
<span data-toggle="tooltip" data-placement="right" title="delete">
<a class="nodeco" href="{{ url_for('rest.deleteNodeUser', nodeId=node.id) }}">
<i class="fas fa-trash"></i>
</a>
</span>
</td>
</tr>
{% endfor %}
</tbody>