Add relay number to channel list

master
Mark Veidemanis 2 years ago
parent 0462df1ca3
commit b2121913b6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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…
Cancel
Save