From 788072f995fc6cd45a1352f989cc344766d5e6ab Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 9 Aug 2022 07:20:30 +0100 Subject: [PATCH] Render elements on one line --- core/templates/modals/drilldown.html | 2 +- .../ui/drilldown/table_results_partial.html | 84 +++++++++++-------- 2 files changed, 49 insertions(+), 37 deletions(-) diff --git a/core/templates/modals/drilldown.html b/core/templates/modals/drilldown.html index 9466a8c..9927e0d 100644 --- a/core/templates/modals/drilldown.html +++ b/core/templates/modals/drilldown.html @@ -104,6 +104,6 @@ - + {# #} diff --git a/core/templates/ui/drilldown/table_results_partial.html b/core/templates/ui/drilldown/table_results_partial.html index 9c13551..bfe764e 100644 --- a/core/templates/ui/drilldown/table_results_partial.html +++ b/core/templates/ui/drilldown/table_results_partial.html @@ -16,30 +16,38 @@ {% if column.name in show and not column.name in hide %} {% block table.thead.th %} - {% if column.orderable %} - {% if column.is_ordered %} - {% is_descending column.order_by as descending %} - {% if descending %} - - {% else %} - - {% endif %} +
+ {% if column.orderable %} +
+ {% if column.is_ordered %} + {% is_descending column.order_by as descending %} + {% if descending %} + + {% else %} + + {% endif %} + {% else %} + + {% endif %} +
+ {% else %} - +
+ {{ column.header }} +
{% endif %} - - {{ column.header }} - - {% else %} - {{ column.header }} - {% endif %} +
{% endblock table.thead.th %} {% endif %} @@ -174,7 +182,7 @@ {% endif %} - {% if row.cells.num_chans is not None %} + {% if row.cells.num_chans != '—' %}
{{ row.cells.num_chans }} @@ -185,19 +193,23 @@ {% elif column.name == 'channel' %} -
- - {{ cell }} - - {% if row.cells.num_users is not None %} -
- - {{ row.cells.num_users }} - -
- {% endif %} -
+ {% if cell != '—' %} +
+ + {{ cell }} + + {% if row.cells.num_users != '—' %} +
+ + {{ row.cells.num_users }} + +
+ {% endif %} +
+ {% else %} + {{ cell }} + {% endif %} {% elif column.name == 'net' %}