Add relay number to channel list
This commit is contained in:
parent
0462df1ca3
commit
b2121913b6
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue