{% load ndf_tags %} {% load simple_filters %} {% load i18n %} {% if filtered_topics %} {% if primary_lang_resources or other_lang_resources %} {% for each_educationaluse in all_educationaluse %}
{{each_educationaluse}} {% for each_primary_lang_resource in primary_lang_resources|get_dict_value_from_key:each_educationaluse %} {# {{each_primary_lang_resource.name}} #} {% if each_educationaluse == "Images" or each_educationaluse == "Videos" %} {% if each_educationaluse == "Images" %} {% elif each_educationaluse == "Videos" %} {% endif %} {# #} {#
#} {{each_primary_lang_resource.name}} {#
#}
     {% else %} {{each_primary_lang_resource.name}}      {% endif %} {% endfor %} {% if other_lang_resources|get_dict_value_from_key:each_educationaluse %}
{% trans "In other languages" %} {% for each_other_lang_resource in other_lang_resources|get_dict_value_from_key:each_educationaluse %} {# {{each_other_lang_resource.name}} #} {% comment %} {% if each_educationaluse == "Images" or each_educationaluse == "Videos" %} {% if each_educationaluse == "Images" %} {% elif each_educationaluse == "Videos" %} {% endif %}
{{each_other_lang_resource.name}}
     {% else %} {% endcomment %} {{each_other_lang_resource.name}}      {# {% endif %} #} {% endfor %}
{% endif %}
{% endfor %} {% else %} {% trans "No resources found with the selected filter" %} {% endif %} {% else %}
{% get_all_resources request node.pk as resources %} {% for key, val in resources.items %}
{{key}} {% if key == "Images" %} {% for k,v in val.items %} {% if k == "fallback_lang" %} {% for each in v %} {# #} {#
#} {#
#}
     {% endfor %} {% elif k == "other_languages" %} {% if v %}
{% trans "In other languages" %} {% for each in v %} {# #} {#
#} {{each.name}} {#
#}
     {% endfor %}
{% endif %} {% endif %} {% endfor %} {% elif key == "Videos" %} {% for k,v in val.items %} {% if k == "fallback_lang" %} {% elif k == "other_languages" %} {% if v %}
{% trans "In other languages" %} {% for each in v %} {# #} {#
#} {{each.name}} {#
#}
     {% endfor %}
{% endif %} {% endif %} {% endfor %} {% else %} {% for k,v in val.items %} {% if k == "fallback_lang" %} {% elif k == "other_languages" %} {% if v %}
{% trans "In other languages" %}
    {% for each in v %}
  • {% include 'ndf/simple_card.html' with no_footer=True resource=each url_name="page_details" first_arg=group_name_tag second_arg=each %}
  • {% endfor %}
{% endif %} {% endif %} {% endfor %} {% endif %}
{% endfor %}
{% endif %}