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 @@
  • Associate Members
  • SPOREs
  • Non-EDRN Sites
  • +
  • Advancement of Head and Neck Cancer Early Detection Research (AHEAD)
  • Biomarker Characterization Centers

    @@ -160,6 +161,13 @@

    Non-EDRN Sites

    There are no non-EDRN sites.

    {% endif %} +

    Advancement of Head and Neck Cancer Early Detection Research (AHEAD)

    + {% if ahead %} + {% edrn_sites_by_type ahead %} + {% else %} +

    There are no non-AHEAD sites.

    + {% endif %} + {% endif %} {% endblock knowledge_content %} {% block extra_js %}