{#- Contracts as a table: the Contracts page and a client's page. -#} {% macro table(rows, with_client=true) -%}
{% if with_client %}{% endif %} {% for c in rows %} {% if with_client %}{% endif %} {% endfor %}
ContractClientKindStatusLawyerVersions
{{ c.title }}
{{ c.code }}{% if c.counterparty %} · with {{ c.counterparty }}{% endif %}
{{ c.client }}{% if c.artist %}artist {% endif %}{{ c.kind_label|replace("Artist: ", "") }} {% if c.chip %}{{ c.chip.label }}{% else %}{{ c.status_label }}{% endif %}{% if c.ends %}
ends {{ c.ends }}
{% endif %}
{% if c.lawyer %}{{ c.lawyer }}{% else %}none{% endif %} {{ c.versions }}{% if c.papers %} · {{ c.papers }} on paper{% endif %}
{%- endmacro %}