Render elements on one line

Mark Veidemanis 2 years ago
parent f7b82147c7
commit 788072f995
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -104,6 +104,6 @@
</div> </div>
</div> </div>
<button class="modal-close is-large" aria-label="close"></button> <button class="modal-close is-large" aria-label="close"></button>
<script>activateButtons();</script> {# <script>activateButtons();</script> #}
</div> </div>
</div> </div>

@ -16,7 +16,9 @@
{% if column.name in show and not column.name in hide %} {% if column.name in show and not column.name in hide %}
{% block table.thead.th %} {% block table.thead.th %}
<th {% render_attrs column.attrs.th class="" %}> <th {% render_attrs column.attrs.th class="" %}>
<div class="nowrap-parent">
{% if column.orderable %} {% if column.orderable %}
<div class="nowrap-child">
{% if column.is_ordered %} {% if column.is_ordered %}
{% is_descending column.order_by as descending %} {% is_descending column.order_by as descending %}
{% if descending %} {% if descending %}
@ -27,6 +29,8 @@
{% else %} {% else %}
<span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span> <span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span>
{% endif %} {% endif %}
</div>
<div class="nowrap-child">
<a <a
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}" hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
@ -37,9 +41,13 @@
style="cursor: pointer;"> style="cursor: pointer;">
{{ column.header }} {{ column.header }}
</a> </a>
</div>
{% else %} {% else %}
<div class="nowrap-child">
{{ column.header }} {{ column.header }}
</div>
{% endif %} {% endif %}
</div>
</th> </th>
{% endblock table.thead.th %} {% endblock table.thead.th %}
{% endif %} {% endif %}
@ -174,7 +182,7 @@
</button> </button>
{% endif %} {% endif %}
</div> </div>
{% if row.cells.num_chans is not None %} {% if row.cells.num_chans != '—' %}
<div class="nowrap-child"> <div class="nowrap-child">
<span class="tag"> <span class="tag">
{{ row.cells.num_chans }} {{ row.cells.num_chans }}
@ -185,12 +193,13 @@
</td> </td>
{% elif column.name == 'channel' %} {% elif column.name == 'channel' %}
<td> <td>
{% if cell != '—' %}
<div class="nowrap-parent"> <div class="nowrap-parent">
<a class="nowrap-child has-text-link is-underlined" <a class="nowrap-child has-text-link is-underlined"
onclick="populateSearch('channel', '{{ cell|escapejs }}')"> onclick="populateSearch('channel', '{{ cell|escapejs }}')">
{{ cell }} {{ cell }}
</a> </a>
{% if row.cells.num_users is not None %} {% if row.cells.num_users != '—' %}
<div class="nowrap-child"> <div class="nowrap-child">
<span class="tag"> <span class="tag">
{{ row.cells.num_users }} {{ row.cells.num_users }}
@ -198,6 +207,9 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% else %}
{{ cell }}
{% endif %}
</td> </td>
{% elif column.name == 'net' %} {% elif column.name == 'net' %}
<td> <td>

Loading…
Cancel
Save