From d55539192eb80f1a68b15a6640dca7837208aad1 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Thu, 28 Aug 2025 11:20:18 -0500 Subject: [PATCH] Still trying to work on fixing the pager issues. --- crudkit/html/templates/crudkit/_macros.html | 24 +++++++++---------- crudkit/html/ui_fragments.py | 1 + .../templates/fragments/_table_fragment.html | 24 +++++++++++-------- inventory/templates/layout.html | 1 + 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/crudkit/html/templates/crudkit/_macros.html b/crudkit/html/templates/crudkit/_macros.html index 23dc1c5..ab955fb 100644 --- a/crudkit/html/templates/crudkit/_macros.html +++ b/crudkit/html/templates/crudkit/_macros.html @@ -20,9 +20,9 @@ {% macro rows(items, fields, getp=None) -%} {%- for obj in items -%} - + {%- for f in fields -%} - {{ getp(obj, f) }} + {{ getp(obj, f) if getp(obj, f) is not none else '-' }} {%- endfor -%} {%- else -%} @@ -55,34 +55,34 @@ {% endif %} #} -