{% load i18n %} {% spaceless %} {% if item.varname == "@custom@" %} {% if item.template %} {% with card.custom_fields|get:item.template|force_escape as value %} {% if not ul_display %}{% endif %}{{ value }}{% if not ul_display %}{% endif %} {% endwith %} {% endif %} {% elif item.varname == "@link@" %} {% firstof item.link_field item.page item.url_template as link %} {% if item.template and link %} {% if not ul_display %}{% endif %} {% with card.custom_fields|get:item.template|force_escape as link_label %} {% if link_label %} {% if item.link_field %} {% with fields_by_varnames|get:item.link_field as field and card.fields|get:item.link_field as value %} {% if field and value and field.type == 'file' %} {{ link_label }} {% endif %} {% endwith %} {% else %} {% with item.page|default:item.url_template as url_key %} {% with card.urls|get:url_key|force_escape as link_url %} {% if link_url %} {{ link_label }} {% endif %} {% endwith %} {% endwith %} {% endif %} {% endif %} {% endwith %} {% if not ul_display %}{% endif %} {% endif %} {% elif item.varname == "@action@" %} {% if not ul_display %}{% endif %} {% if not ul_display %}{% endif %} {% else %} {% if item.varname %} {% with fields_by_varnames|get:item.varname as field and card.fields|get:item.varname as value %} {% if field and value %} {% if not ul_display %}{% endif %}{% include "combo/wcs/card-field-value.html" with mode='inline' %}{% if not ul_display %}{% endif %} {% elif field %} {% if not ul_display %}{% endif %}{% include "combo/wcs/card-field-value.html" with mode='inline' value=item.empty_value empty=True %}{% if not ul_display %}{% endif %} {% endif %} {% endwith %} {% endif %} {% endif %} {% endspaceless %}