Fix msg wrap and default most fields to hidden

This commit is contained in:
2022-08-11 07:22:22 +01:00
parent d1076ca2b5
commit c06c0cbe18
3 changed files with 33 additions and 18 deletions

View File

@@ -60,12 +60,9 @@
{% block table.thead.row %}
<tr>
{% for column in table.columns %}
{% if column.name in show and not column.name in hide %}
{% if column.name in show %}
{% block table.thead.th %}
<th class="orderable {{ column.name }}"
{% if column.name in invisible %}
style="display:none;"
{% endif %}>
<th class="orderable {{ column.name }}">
<div class="nowrap-parent">
{% if column.orderable %}
<div class="nowrap-child">
@@ -114,13 +111,9 @@
{% block table.tbody.row %}
<tr class="{% if row.cells.exemption == True %}has-background-grey-lighter{% elif row.cells.type == 'join' %}has-background-success-light{% elif row.cells.type == 'quit' %}has-background-danger-light{% elif row.cells.type == 'kick' %}has-background-danger-light{% elif row.cells.type == 'part' %}has-background-warning-light{% elif row.cells.type == 'mode' %}has-background-info-light{% endif %}">
{% for column, cell in row.items %}
{% if column.name in show and not column.name in hide %}
{% if column.name in show %}
{% block table.tbody.td %}
{% if column.name in invisible %}
<td class="{{ column.name }}" style="display:none;">
{{ cell }}
</td>
{% elif cell == '—' %}
{% if cell == '—' %}
<td class="{{ column.name }}">
<span class="icon">
<i class="fa-solid fa-file-slash"></i>
@@ -188,7 +181,7 @@
</a>
</td>
{% elif column.name == 'msg' %}
<td class="{{ column.name }}" style="max-width: 10em" class="wrap">{{ row.cells.msg }}</td>
<td class="{{ column.name }} wrap" style="max-width: 10em">{{ row.cells.msg }}</td>
{% elif column.name == 'host' %}
<td class="{{ column.name }}">
<a class="has-text-link is-underlined"