{% extends "base.html" %} {% import "macros.html" as m %} {% from "icons.html" import icon %} {# filter_columns are the columns shown, in order: the defaults, or layout.toml's [contacts] columns (help: adjust-layout). #} {% block title %}Contacts{% endblock %} {% block content %}

Contacts ({{ rows | length }}){% if q %} matching “{{ q }}”{% endif %}

{{ icon('plus') }}New contactImport

{{ m.filter_form('contact-filters', '/contacts', active, q, sort, dir) }}
{% for col in filter_columns %}{{ col.label }} {{ m.sort_links(col, sort, dir, sort_url) }}{% endfor %}{% for col in filter_columns %}{% endfor %} {%- set custom = custom_fields_for('contact') %} {% for r in rows %} {%- for col in filter_columns %} {%- if col.key == 'name' %} {{ r.name }} {%- elif col.key == 'company_name' %} {{ r.company_name }} {%- elif col.key == 'title' %} {{ r.title }} {%- elif col.key == 'email' %} {% if r.email %}{{ r.email }}{% endif %} {%- elif col.key == 'linkedin' %} {% if r.linkedin %}{{ r.linkedin | replace('https://www.linkedin.com/in/', '') | replace('https://', '') }}{% endif %} {%- elif col.key == 'last_touch' %} {{ fmt_datetime(r.last_touch) if r.last_touch else 'none' }} {%- elif col.key == 'interaction_count' %} {{ r.interaction_count }} {%- else %} {% for f in custom if f.key == col.key %}{{ f.display(r.extra.get(f.key)) }}{% endfor %} {%- endif %} {%- endfor %} {% else %} {% endfor %}
{{ m.filter_control(col, active, 'contact-filters') }}
No contacts.
{% endblock %}