{% load i18n %} {% load ndf_tags %} {% load simple_filters %}
{% if is_event %} {% get_event_status resource as event_status_msg %} {% if event_status_msg %}
{% endif%} {% endif%} {% check_is_gstaff groupid request.user as gstaff_access %} {% if not no_url %} {% if first_arg and second_arg and third_arg %} {% elif first_arg and second_arg %} {% elif first_arg %} {% else %} {% endif %} {% endif %}
{% get_dict_from_list_of_dicts resource.attribute_set as attr_set_dict %} {% get_relation_value resource.pk 'has_thumbnail' as grel_dict %} {% if not grel_dict.cursor and grel_dict.grel_node and grel_dict.grel_node.fs_file_ids.1 %} {% elif grel_dict.grel_node.if_file.thumbnail.relurl and 'video' or "File" in resource.if_file.mime_type %} {% elif resource.if_file.thumbnail.relurl and 'video' in resource.if_file.mime_type %} {% elif resource.if_file.mid.relurl %} {% elif resource.if_file.original.relurl and 'image' in resource.if_file.mime_type %} {% elif resource.fs_file_ids.2 and not 'video' in resource.mime_type %} {% elif resource.fs_file_ids.1 %} {% elif "File" in resource.member_of_names_list or "Page" in resource.member_of_names_list%} {% if resource.collection_set %} {% elif attr_set_dict.educationaluse and attr_set_dict.educationaluse != "Documents" %} {% elif resource.fs_file_ids.0 and 'image' in resource.mime_type %} {% elif ".ggb" in resource.name %} Geogebra {% elif resource.if_file.mime_type %} {% else %} {% endif %} {% elif "Group" in resource.member_of_names_list or has_logo == True or has_prof_pic == True %} {% if "Course" in resource.member_of_names_list or has_logo == True %} {% get_relation_value resource.pk 'has_logo' as grel_dict %} {% if not grel_dict.cursor and grel_dict.grel_node and grel_dict.grel_node.if_file.mid.relurl %} {% else %} Profile picture for this group. {% endif %} {% else %} {% get_relation_value resource.pk 'has_profile_pic' as grel_dict %} {% if not grel_dict.cursor and grel_dict.grel_node and grel_dict.grel_node.if_file.mid.relurl %} {% else %} Profile picture for this group. {% endif %} {% endif %} {% else%} {% endif %}
{% if not no_footer %}
{% if has_contributor == True %} {{resource.created_by|get_username|truncatechars:"10"}} {% endif %} {{resource.created_at|date:"d-m-Y"}} {% if user.is_authenticated and not group_object.edit_policy == "NON_EDITABLE" or gstaff_access %} {% if not no_checkbox %} {% endif %} {% endif %}
{% endif %}