From 4912f6790daabd6c6d8e23f3823a8cc037606784 Mon Sep 17 00:00:00 2001
From: anonymous <anonymous>
Date: Thu, 18 Apr 2019 16:06:07 +0200
Subject: [PATCH] hide timerange pill if empty

---
 ckanext/odsh/templates/snippets/package_item.html | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ckanext/odsh/templates/snippets/package_item.html b/ckanext/odsh/templates/snippets/package_item.html
index 1f6488bb..ff1ef8d4 100644
--- a/ckanext/odsh/templates/snippets/package_item.html
+++ b/ckanext/odsh/templates/snippets/package_item.html
@@ -71,9 +71,12 @@ Example:
     {% endif %}
     {% endblock %}
     {% block notes %}
+
+    {%if start or end %}
     <div class='package-info-pill'>
         {{timerange}}
     </div>
+    {% endif %}
     {% set spatial_text=h.odsh_get_spatial_text(package)%}
     {%if spatial_text %}
     <div class='package-info-pill'>
-- 
GitLab