From 99f9700ed030a4687ce27deb11a74f13d7e87133 Mon Sep 17 00:00:00 2001 From: Kaitlyn Crawford Date: Fri, 26 Jan 2018 16:21:15 +0200 Subject: [PATCH] Display record counter for active segments --- .../wagtail_personalisation/segment/dashboard.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html index a11d3fd..454a82e 100644 --- a/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html +++ b/src/wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html @@ -80,6 +80,11 @@ {% endif %} {% endfor %} + {% if segment.matched_users_count > 0 %} +
  • + {{ segment.matched_users_count }} {% trans "user" %}{{ segment.matched_users_count|pluralize }} {% trans "were possible matches for this segment at creation" %} +
  • + {% endif %}