{% if device == "desktop" and contact != "IgnoreList" %} Profile information for {{ contact_name.UID }} - {{ contact_name.get("FriendlyName", "None") }} {% else %} Profile information for {{ contact_name.UID }} - {{ contact_name.DisplayName }} {% endif %} {% if avatar %} {{ avatar }} {% endif %}


{% if contact != "IgnoreList" %} {% for k, v in contacts[contact].items() | sort %} {% if k in ("MediaInCommon", "ConversationState", "GalleryContentDetails") %} {% set v = v.items() | map('join', ': ') | join('
') %} {% else %} {% set v = v %} {% endif %} {% endfor %} {% endif %}
{{ k }} {% if k in ["AvatarOriginal", "AvatarPreview", "AvatarOther"] and v is not none and links %} {{ v }} {% elif k == "SearchQueries" %} {% for key, val in v.items() %} {{ val.DATE }} - {{ val.QUERY }}
{% endfor %} {% else %} {{ v | safe }} {% endif %}