diff --git a/src/eke.knowledge/src/eke/knowledge/sites.py b/src/eke.knowledge/src/eke/knowledge/sites.py index 892428db..43fd453b 100644 --- a/src/eke.knowledge/src/eke/knowledge/sites.py +++ b/src/eke.knowledge/src/eke/knowledge/sites.py @@ -667,6 +667,7 @@ class SiteIndex(KnowledgeFolder): _typeC = 'Associate Member C' _spore = 'SPOREs' _non = 'Non-EDRN Site' + _ahead = 'AHEAD' template = 'eke.knowledge/site-index.html' subpage_types = [Site, OrganizationalGroup] @@ -683,6 +684,7 @@ def get_context(self, request: HttpRequest, *args, **kwargs) -> dict: context['typeC'] = Site.objects.child_of(self).live().public().filter(memberType=self._typeC) context['spore'] = Site.objects.child_of(self).live().public().filter(memberType=self._spore) context['non'] = Site.objects.child_of(self).live().public().filter(memberType=self._non) + context['ahead'] = Site.objects.child_of(self).live().public().filter(memberType=self._ahead) sites = Site.objects.child_of(self).live().public().specific().order_by(Lower('title')) map_data = sites.values('title', 'pi__title', 'pi__city', 'pi__lat', 'pi__lon').exclude(pi__lat__isnull=True) diff --git a/src/eke.knowledge/src/eke/knowledge/templates/eke.knowledge/site-index.html b/src/eke.knowledge/src/eke/knowledge/templates/eke.knowledge/site-index.html index ab62855b..d736ea4d 100644 --- a/src/eke.knowledge/src/eke/knowledge/templates/eke.knowledge/site-index.html +++ b/src/eke.knowledge/src/eke/knowledge/templates/eke.knowledge/site-index.html @@ -32,6 +32,7 @@
There are no non-EDRN sites.
{% endif %} +There are no non-AHEAD sites.
+ {% endif %} + {% endif %} {% endblock knowledge_content %} {% block extra_js %}