{% extends 'base.html' %} {% load helpers %} {% load registry %} {# TODO: Figure out better solution: this is a quick hack to remove "chevrons" from homepage because in this commit I'm adding the chevrons in base_django.html #} {% block page_title %}{% endblock %} {% block header %} {{ block.super }} {% if new_release %} {# new_release is set only if the current user is a superuser or staff member #} {% endif %} {% endblock %} {% block extra_styles %} {% endblock %} {% block content %} {% registry %}
{% for panel_name, panel_details in registry.homepage_layout.panels.items %} {% if request.user|has_one_or_more_perms:panel_details.permissions %}
{% with cookie_key='homepanel-'|add:panel_name|slugify %}
{{ panel_name }} {% comment %}Not using
{% endif %} {% endfor %}
{% endblock %} {% block javascript %} {{ block.super }} {% endblock %}