{% load i18n %} {% load ndf_tags %} {% load simple_filters %}
{% if first_arg and second_arg and third_arg %} {% elif first_arg and second_arg %} {% elif first_arg %} {% endif %}
{% get_dict_from_list_of_dicts resource.attribute_set as attr_set_dict %} {% if resource.fs_file_ids.1 %} {% elif resource.collection_set %} {% elif "File" in resource.member_of_names_list %} {% if attr_set_dict.educationaluse and attr_set_dict.educationaluse != "Documents" %} {% else %} {% endif %} {% else %} {% endif %} {% firstof resource.altnames resource.name %}
{% if resource.content_org %}

{% trans "Description" %}

{{resource.content_org|truncatechars:75}}
{% endif %} {% if resource.tags %}

{% trans "Tags" %}

{% for each_tag in resource.tags %} {% if forloop.counter < 7 %} {% endif %} {% endfor %} {% if resource.tags|length > 6 %} +{{ resource.tags|length|add:"-6"}} {% trans "more..." %} {% endif %}
{% endif %} {% comment %} {% if resource.attribute_set %}

Properties

{% for each_attr_key, each_attr_val in attr_set_dict.items %} {% if forloop.counter < 3 %} {{each_attr_key}}: {{each_attr_val}}
{% endif %} {% endfor %} {% if resource.attribute_set|length > 2 %} +{{ resource.attribute_set|length|add:"-2"}} more... {% endif %}
{% endif %} {% endcomment %} {% comment %} {% if "File" in resource.member_of_names_list %}

Resource Metadata

Type: {{resource.mime_type}}
Size: {{resource.file_size.size}} {{resource.file_size.unit}}
{% endif %} {% endcomment %}
By {{resource.created_by|get_username|truncatechars:"10"}} at {{resource.created_at|date:"d M Y"}}