{#- Contracts as a table: the Contracts page and a client's page. -#} {% macro table(rows, with_client=true) -%}
| Contract | {% if with_client %}Client | {% endif %}Kind | Status | Lawyer | Versions |
|---|---|---|---|---|---|
| {{ c.title }} {{ c.code }}{% if c.counterparty %} · with {{ c.counterparty }}{% endif %} |
{% if with_client %}{{ c.client }} | {% endif %}{% 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 %} |
No contract matches the filter.