diff --git a/aleksis/core/templates/core/partials/footer-menu.html b/aleksis/core/templates/core/partials/footer-menu.html deleted file mode 100644 index 6a67fa8a8592c5686a1efda8bd0ea9a19e71155b..0000000000000000000000000000000000000000 --- a/aleksis/core/templates/core/partials/footer-menu.html +++ /dev/null @@ -1,10 +0,0 @@ -{# -*- engine:django -*- #} - -{% for item in FOOTER_MENU.items.all %} - <a class="blue-text text-lighten-4 btn-flat" href="{{ item.url }}"> - {% if item.icon %} - <i class="material-icons iconify footer-icon left" data-icon="mdi:{{ item.icon }}"></i> - {% endif %} - {{ item.name }} - </a> -{% endfor %} diff --git a/aleksis/core/templates/core/partials/hero_background.html b/aleksis/core/templates/core/partials/hero_background.html deleted file mode 100644 index 33a4890586a18f5f0b5e486d6fb750707ac805e8..0000000000000000000000000000000000000000 --- a/aleksis/core/templates/core/partials/hero_background.html +++ /dev/null @@ -1,2 +0,0 @@ -{% load static %} -<div id="hero-bg" style="background-image: url('{% static "img/hero.svg" %}'); background-size: 3840px"></div> diff --git a/aleksis/core/templates/core/partials/language_form.html b/aleksis/core/templates/core/partials/language_form.html deleted file mode 100644 index 247dfe386c6dc003e4436415afbf13c34a557612..0000000000000000000000000000000000000000 --- a/aleksis/core/templates/core/partials/language_form.html +++ /dev/null @@ -1,32 +0,0 @@ -{# -*- engine:django -*- #} - -{% load i18n %} - - -<form action="{% url 'set_language' %}" method="post" class="language-form"> - {% csrf_token %} - <input name="next" type="hidden" value="{{ request.get_full_path }}"> - - {% get_current_language as LANGUAGE_CODE %} - {% get_available_languages as LANGUAGES %} - {% get_language_info_list for LANGUAGES as languages %} - - - {# Select #} - <div class="input-field language-field"> - <span>{% trans "Language" %}</span> - <select name="language"> - {% for language in languages %} - <option value="{{ language.code }}" {% if language.code == LANGUAGE_CODE %} - selected {% endif %}>{{ language.name_local }}</option> - {% endfor %} - </select> - </div> - - {# Submit button (only visible if JS isn't activated #} - <p class="language-submit-p"> - <button type="submit" class="btn-flat waves-effect waves-light white-text"> - {% trans "Select language" %} - </button> - </p> -</form> diff --git a/aleksis/core/templates/core/partials/no_person.html b/aleksis/core/templates/core/partials/no_person.html deleted file mode 100644 index d99a1e0cbcbd0d6a39ea8565bbcadcb39d7482ce..0000000000000000000000000000000000000000 --- a/aleksis/core/templates/core/partials/no_person.html +++ /dev/null @@ -1,29 +0,0 @@ -{# -*- engine:django -*- #} - -{% load i18n %} - -{% if user.person.is_dummy or not user.person and not user.is_anonymous %} - <div class="alert error"> - <div> - <i class="material-icons iconify left" data-icon="mdi:alert-octagon-outline"></i> - - {% if user.person.is_dummy %} - <p> - {% blocktrans %} - Your administrator account is not linked to any person. Therefore, - a dummy person has been linked to your account. - {% endblocktrans %} - </p> - {% else %} - <p> - {% blocktrans %} - Your user account is not linked to a person. This means you - cannot access any school-related information. Please contact - the managers of AlekSIS at your school. - {% endblocktrans %} - </p> - {% endif %} - - </div> - </div> -{% endif %} diff --git a/aleksis/core/templates/core/partials/sidenav.html b/aleksis/core/templates/core/partials/sidenav.html deleted file mode 100644 index 0120f6b71b0f505e6376e4b3a36894d71b38b914..0000000000000000000000000000000000000000 --- a/aleksis/core/templates/core/partials/sidenav.html +++ /dev/null @@ -1,69 +0,0 @@ -{# -*- engine:django -*- #} - -{% load menu_generator data_helpers %} - -{% get_menu "NAV_MENU_CORE" as core_menu %} - -<ul class="collapsible collapsible-accordion"> - - {% for item in core_menu %} - {% if not item.submenu %} - <li class="{% if item.selected %} active {% endif %}"> - <a class="truncate" {% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url }}"> - {% if item.icon_class %} - <i class="{{ item.icon_class }}"></i> - {% elif item.icon %} - <i class="material-icons">{{ item.icon }}</i> - {% elif item.svg_icon %} - <i class="material-icons iconify" data-icon="{{item.svg_icon}}"></i> - {% endif %} - {{ item.name }} - {% build_badge item as badge %} - {% if badge %} - <span class="new badge sidenav-badge"> {{ badge }}</span> - {% endif %} - </a> - </li> - {% endif %} - {% if item.submenu %} - <li class="bold {% if item.selected %} active {% endif %}"> - <a class="collapsible-header waves-effect waves-primary truncate" {% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url|default:"#" }}"> - {% if item.icon_class %} - <i class="{{ item.icon_class }}"></i> - {% elif item.icon %} - <i class="material-icons">{{ item.icon }}</i> - {% elif item.svg_icon %} - <i class="material-icons iconify" data-icon="{{item.svg_icon}}"></i> - {% endif %} - {{ item.name }} - {% build_badge item as badge %} - {% if badge %} - <span class="new badge sidenav-badge"> {{ badge }}</span> - {% endif %} - </a> - <div class="collapsible-body"> - <ul> - {% for menu in item.submenu %} - <li class="{% if menu.selected %} active {% endif %}"> - <a class="truncate" href="{{ menu.url }}"> - {% if menu.icon_class %} - <i class="{{ menu.icon_class }}"></i> - {% elif menu.icon %} - <i class="material-icons">{{ menu.icon }}</i> - {% elif menu.svg_icon %} - <i class="material-icons iconify" data-icon="{{menu.svg_icon}}"></i> - {% endif %} - {{ menu.name }} - {% build_badge item as badge %} - {% if badge %} - <span class="new badge sidenav-badge"> {{ badge }}</span> - {% endif %} - </a> - </li> - {% endfor %} - </ul> - </div> - </li> - {% endif %} - {% endfor %} -</ul> diff --git a/aleksis/core/util/core_helpers.py b/aleksis/core/util/core_helpers.py index 178c8b25c2ca3a26792a879dae63b7ff2ce446dc..f8ff683de67b9958c71451c8632645ccfec51d06 100644 --- a/aleksis/core/util/core_helpers.py +++ b/aleksis/core/util/core_helpers.py @@ -218,8 +218,6 @@ def has_person(obj: Union[HttpRequest, Model]) -> bool: def custom_information_processor(request: Union[HttpRequest, None]) -> dict: """Provide custom information in all templates.""" - from ..models import CustomMenu - pwa_icons = get_pwa_icons() regrouped_pwa_icons = {} for pwa_icon in pwa_icons: @@ -227,7 +225,6 @@ def custom_information_processor(request: Union[HttpRequest, None]) -> dict: regrouped_pwa_icons[pwa_icon.rel][pwa_icon.size] = pwa_icon context = { - "FOOTER_MENU": CustomMenu.get_default("footer"), "ADMINS": settings.ADMINS, "PWA_ICONS": regrouped_pwa_icons, "SENTRY_ENABLED": settings.SENTRY_ENABLED,