{% extends "devilry_search/base.django.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load cradmin_tags %} {% block body %}
{% crispy form %}
{% if student_results %}
{% if searchcategorycount > 1 %}

{% trans "Content where you are student" %}

{% endif %}
{% for result in student_results %}

{{ result.title }}

{{ result.path }}

{% endfor %}
{% endif %} {% if examiner_results %}
{% if searchcategorycount > 1 %}

{% trans "Content where you are examiner" %}

{% endif %}
{% for result in examiner_results %} {% if result.content_type == "core.assignmentgroup" %} {% trans "Group" %}

{{ result.title }}

{{ result.path }}

{% else %} {% trans "Assignment" %}

{{ result.title }}

{{ result.path }}

{% endif %} {% endfor %}
{% endif %} {% if admin_results %}
{% if searchcategorycount > 1 %}

{% trans "Content where you are admin" %}

{% endif %}
{% for result in admin_results %} {% if result.content_type == "core.assignmentgroup" %} {% trans "Group" %}

{{ result.title }}

{{ result.path }}

{% elif result.content_type == "core.assignment" %} {% trans "Assignment" %}

{{ result.title }}

{{ result.path }}

{% elif result.content_type == "core.period" %} {% trans "Period" %}

{{ result.title }}

{{ result.path }}

{% elif result.content_type == "core.subject" %} {% trans "Subject" %}

{{ result.title }}

{{ result.path }}

{% elif result.content_type == "core.node" %} {% trans "Node" %}

{{ result.title }}

{{ result.path }}

{% else %} {% endif %} {% endfor %}
{% endif %}
{% endblock body %}