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"> <table class="table is-fullwidth is-hoverable">
<thead> <thead>
<th>channel</th> <th>channel</th>
<th>num</th>
<th>actions</th> <th>actions</th>
</thead> </thead>
<tbody> <tbody>
{% for channel, info in channels.items %} {% for channel in channels %}
<tr> <tr>
<td> <td>
{{ channel }} {{ channel.name }}
<span class="tag"> <span class="tag">
{{ info }} {{ channel.users }}
</span> </span>
</td> </td>
<td>
{{ channel.num }}
</td>
<td> <td>
<button <button
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' 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-target="#channels"
hx-swap="outerHTML" hx-swap="outerHTML"
class="button is-danger is-small"> class="button is-danger is-small">