Add relay number to channel list

This commit is contained in:
Mark Veidemanis 2022-08-13 13:47:22 +01:00
parent 0462df1ca3
commit b2121913b6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 8 additions and 4 deletions

View File

@ -6,21 +6,25 @@
<table class="table is-fullwidth is-hoverable">
<thead>
<th>channel</th>
<th>num</th>
<th>actions</th>
</thead>
<tbody>
{% for channel, info in channels.items %}
{% for channel in channels %}
<tr>
<td>
{{ channel }}
{{ channel.name }}
<span class="tag">
{{ info }}
{{ channel.users }}
</span>
</td>
<td>
{{ channel.num }}
</td>
<td>
<button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-delete="{% url 'threshold_irc_network_channel' net channel %}"
hx-delete="{% url 'threshold_irc_network_channel' net channel.name %}"
hx-target="#channels"
hx-swap="outerHTML"
class="button is-danger is-small">