{% 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 temp_list = [] %} {% for k2, val in v.items() | sort() %} {% if k2 == "FLAGS" %} {% set formatted_val = '
    ' ~ (val.items()|sort() | map('join', ': ') | join('
    ')) %} {% set _ = temp_list.append(k2.replace("_", " ").title() ~ ': ' ~ formatted_val) %} {% else %} {% set _ = temp_list.append(k2.replace("_", " ").title() ~ ': ' ~ val) %} {% endif %} {% endfor %} {% set v = temp_list | join('
') %} {% elif k == "Capabilities" and v %} {% set temp_list = [] %} {% for each in v %} {% set val = each.split(" - ")[0].replace("_", " ").title() %} {% if val is not none %} {% set _ = temp_list.append(val) %} {% endif %} {% endfor %} {% set v = temp_list | 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 %}