2022-07-21 12:52:27 +00:00
|
|
|
{% load index %}
|
|
|
|
|
2022-07-21 12:52:10 +00:00
|
|
|
<div id="channels">
|
2022-07-21 12:52:24 +00:00
|
|
|
<div class="content" style="max-height: 30em; overflow: auto;">
|
|
|
|
<table class="table is-fullwidth is-hoverable">
|
2022-07-21 18:16:59 +00:00
|
|
|
<tbody>
|
|
|
|
{% for chan in chans %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
|
|
hx-post="{% url 'modal_drilldown' %}"
|
|
|
|
hx-vals='{"net": "{{ net }}", "nick": "{{ nick }}", "channel": "{{ chan }}"}'
|
|
|
|
hx-target="#modals-here"
|
|
|
|
hx-trigger="click"
|
|
|
|
class="button is-small">
|
|
|
|
{{ chan }}
|
2022-07-21 12:52:27 +00:00
|
|
|
</span>
|
2022-07-21 18:16:59 +00:00
|
|
|
{% if chan in num_users %}
|
|
|
|
<span class="tag">
|
|
|
|
{{ num_users|index:chan }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2022-07-21 12:52:24 +00:00
|
|
|
</table>
|
2022-07-21 12:52:20 +00:00
|
|
|
</div>
|
2022-07-21 12:52:10 +00:00
|
|
|
</div>
|