Make results more compact

This commit is contained in:
Mark Veidemanis 2022-08-26 20:02:42 +01:00
parent ab0fb195da
commit 5c12f651c8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 12 additions and 4 deletions

View File

@ -34,6 +34,7 @@ WHITELIST_FIELDS = [
"tokens",
"num_chans",
"num_users",
"online",
"tokens",
"src",
"exemption",

View File

@ -30,6 +30,10 @@ $(document).ready(function(){
"date": "off",
"time": "off",
"id": "off",
"host": "off",
"ident": "off",
"channel": "off",
"net": "off",
"num": "off",
"channel_nsfw": "off",
"channel_category": "off",
@ -45,6 +49,7 @@ $(document).ready(function(){
"num_chans": "off",
"exemption": "off",
// "version_sentiment": "off",
"sentiment": "off",
"num": "off",
"online": "off",
"mtype": "off",

View File

@ -283,15 +283,17 @@
</a>
<div class="nowrap-child">
{% if row.cells.src == 'irc' %}
<button
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'modal_drilldown' %}"
hx-vals='{"net": "{{ row.cells.net }}", "nick": "{{ row.cells.nick }}", "channel": "{{ row.cells.channel }}"}'
hx-target="#modals-here"
hx-trigger="click"
class="button is-small">
Information
</button>
class="has-text-black">
<span class="icon" data-tooltip="Open drilldown modal">
<i class="fa-solid fa-album"></i>
</span>
</a>
{% endif %}
</div>
{% if row.cells.num_chans != '—' %}