# Contact list

{%- for contact in contacts %}
{%- if let Some(meta) = metadatas.get(contact.public_key) %}
{%- if let Some(name) = meta.name && !name.is_empty() %}
=> /p/{{ contact.public_key }} {{ name }}
{%- else if let Some(display_name) = meta.display_name && !display_name.is_empty() %}
=> /p/{{ contact.public_key }} {{ display_name }}
{%- else %}
=> /p/{{ contact.public_key }} {{ contact.public_key }}
{%- endif %}
{%- else %}
=> /p/{{ contact.public_key }} {{ contact.public_key }}
{%- endif %}
{%- endfor %}
