From ac839d9481b863c93a9c0f92011118bb581f7c2d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 9 Jan 2023 18:49:20 +0100 Subject: UI bootstrap for stats --- CHANGES.md | 2 + ishtar_common/models_imports.py | 5 +- .../templates/blocks/DataTables-stats.html | 70 ++++++++++++---------- 3 files changed, 45 insertions(+), 32 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c51fef4c4..d869b5f54 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,10 +12,12 @@ Ishtar changelog - utils: adapt to v4 OSM relations importer - syndication ui: better color for external sources - Search: sort by ID by default +- UI bootstrap for stats ### Bug fixes ### - Fix geo finds for external sources: do not display - Fix pinned search for external source +- Fix strange bug on statistics with criteria v4.0.32 - 2022-12-12 -------------------- diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index b61d591b1..6358f070a 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -179,7 +179,10 @@ class ImporterType(models.Model): ) is_template = models.BooleanField(_("Can be exported"), default=False) unicity_keys = models.CharField( - _('Unicity keys (separator ";")'), blank=True, null=True, max_length=500 + _('Unicity keys (separator ";")'), blank=True, null=True, max_length=500, + help_text=_("Mandatory for update importer. Set to key that identify items " + "without ambiguity. Warning: __ is not supported, only use level " + "1 key.") ) available = models.BooleanField(_("Available"), default=True) objects = ImporterTypeManager() diff --git a/ishtar_common/templates/blocks/DataTables-stats.html b/ishtar_common/templates/blocks/DataTables-stats.html index aae2bb91f..d443a7721 100644 --- a/ishtar_common/templates/blocks/DataTables-stats.html +++ b/ishtar_common/templates/blocks/DataTables-stats.html @@ -3,37 +3,45 @@
-

- - - - -

-

- - - - -

+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+

-- cgit v1.2.3