matrix.org/templates/macros/nominee.html
2025-05-20 12:43:29 -07:00

34 lines
1.3 KiB
HTML

{% macro individual(individual) %}
<details class="nominee">
<summary>{{ individual.name }} {% if individual.pronouns %}({{ individual.pronouns }}){% endif %}</summary>
{% if individual.bio %}
<h4>Biography</h4>
{{ individual.bio | markdown() | safe }}
{% endif %}
{% if individual.platform_statement %}
<h4>Platform Statement</h4>
{{ individual.platform_statement | markdown() | safe }}
{% if individual.extended_platform %}
<p><a href="{{ individual.extended_platform | safe }}" target="_blank">Read this candidate's extended platform.</a></p>
{% endif %}
{% endif %}
</details>
{% endmacro %}
{% macro project(representative) %}
<details class="nominee">
<summary>{{ representative.name }} {% if representative.pronouns %}({{ representative.pronouns }}){% endif %} - {{
representative.project }}</summary>
{% if representative.bio %}
<h4>Biography</h4>
{{ representative.bio | markdown() | safe }}
{% endif %}
{% if representative.platform_statement %}
<h4>Platform Statement</h4>
{{ representative.platform_statement | markdown() | safe }}
{% if representative.extended_platform %}
<p><a href="{{ representative.extended_platform | safe }}" target="_blank">Read this candidate's extended platform.</a></p>
{% endif %}
{% endif %}
</details>
{% endmacro %}