You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
<div id="channels">
|
|
{% include 'manage/threshold/partials/notify.html' %}
|
|
{% if channels is not None %}
|
|
<div class="content" style="max-height: 30em; overflow: auto;">
|
|
<div class="table-container">
|
|
<table class="table is-fullwidth is-hoverable">
|
|
<thead>
|
|
<th>channel</th>
|
|
<th>num</th>
|
|
<th>actions</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for channel in channels %}
|
|
<tr>
|
|
<td>
|
|
{{ channel.name }}
|
|
<span class="tag">
|
|
{{ channel.users }}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
{{ channel.num }}
|
|
</td>
|
|
<td>
|
|
<button
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}", "Content-Type": "application/json"}'
|
|
hx-delete="{% url 'threshold_irc_network_channel_json' net %}"
|
|
hx-vals='{"channel": "{{ channel.name }}"}'
|
|
hx-target="#channels"
|
|
hx-swap="outerHTML"
|
|
class="button is-danger is-small">
|
|
<span class="icon" data-tooltip="Part">
|
|
<i class="fa-solid fa-xmark" aria-hidden="true"></i>
|
|
</span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div> |