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", "tokens",
"num_chans", "num_chans",
"num_users", "num_users",
"online",
"tokens", "tokens",
"src", "src",
"exemption", "exemption",

View File

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

View File

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