{% extends "main.html" %} {% set type_icons = { 'research': '🔬', 'education': '🔬', 'advocacy': '📢', 'platform': '💻', 'civic_tech': '💻', 'practice': '🤝', 'philanthropy': '🤝', 'cooperative': '🤝', 'party': '🗳️', 'political_party': '🗳️', 'political-party': '🗳️', 'political_movement': '🗳️', 'governance': '⚖️', 'government': '⚖️' } %} {% set country_names = { 'AR': 'Argentina', 'AT': 'Austria', 'AU': 'Australia', 'BE': 'Belgium', 'BO': 'Bolivia', 'BR': 'Brazil', 'CA': 'Canada', 'CN': 'China', 'CU': 'Cuba', 'DE': 'Germany', 'EC': 'Ecuador', 'EE': 'Estonia', 'ES': 'Spain', 'EU': 'European Union', 'FR': 'France', 'GB': 'United Kingdom', 'GH': 'Ghana', 'IL': 'Israel', 'IN': 'India', 'IS': 'Iceland', 'KE': 'Kenya', 'LB': 'Lebanon', 'MX': 'Mexico', 'MY': 'Malaysia', 'NG': 'Nigeria', 'NZ': 'New Zealand', 'PH': 'Philippines', 'PS': 'Palestine', 'RO': 'Romania', 'RU': 'Russia', 'RW': 'Rwanda', 'SE': 'Sweden', 'SK': 'Slovakia', 'SY': 'Syria', 'TW': 'Taiwan', 'UA': 'Ukraine', 'US': 'United States', 'VE': 'Venezuela', 'VN': 'Vietnam', 'ZA': 'South Africa' } %} {% block content %} {%- set header_img = page.meta.banner or page.meta.logo %} {%- set is_banner = page.meta.banner and true or false %} {%- if header_img %}
{{ page.title }} logo
{%- endif %} {%- if page.meta.status or page.meta.type or page.meta.country or page.meta.website %} {%- set has_details = (page.meta.contact and (page.meta.contact.email or page.meta.contact.phone or page.meta.contact.form)) or page.meta.rss_feed or page.meta.ics_feed or page.meta.news_page or page.meta.concepts or page.meta.computed_activity %} {%- if has_details %}
{% else %}
{% endif %} {%- if page.meta.status %}Status: {{ page.meta.status }}{% endif %} {%- if page.meta.type %}Type: {{ type_icons.get(page.meta.type, '🏛️') }} {{ page.meta.type }}{% endif %} {%- if page.meta.country %}Country: {{ country_names.get(page.meta.country.upper(), page.meta.country) }}{% endif %} {%- if page.meta.website %} Website: {%- if 'web.archive.org' in page.meta.website %} Archive ↗ {%- else %} {{ page.meta.website | replace('https://', '') | replace('http://', '') }} {%- endif %} {%- endif %} {%- if has_details %} {%- if page.meta.status %} {%- endif %} {%- if page.meta.type %} {%- endif %} {%- if page.meta.country %} {%- endif %} {%- if page.meta.website %} {%- endif %} {%- if page.meta.contact and (page.meta.contact.email or page.meta.contact.phone or page.meta.contact.form or page.meta.contact.channels) %} {%- endif %} {%- if page.meta.rss_feed %} {%- endif %} {%- if page.meta.ics_feed %} {%- endif %} {%- if page.meta.news_page %} {%- endif %} {%- if page.meta.concepts %} {%- endif %} {%- if page.meta.computed_activity %} {%- set ca = page.meta.computed_activity %} {%- endif %}
Status {{ page.meta.status }}
Type {{ type_icons.get(page.meta.type, '🏛️') }} {{ page.meta.type }}
Country {{ country_names.get(page.meta.country.upper(), page.meta.country) }}
Website {%- if 'web.archive.org' in page.meta.website %} Archive ↗ {%- else %} {{ page.meta.website | replace('https://', '') | replace('http://', '') }} {%- endif %}
Contact {%- if page.meta.contact.email %}{{ page.meta.contact.email }}{%- endif %} {%- if page.meta.contact.email and page.meta.contact.phone %}
{%- endif %} {%- if page.meta.contact.phone %}{{ page.meta.contact.phone }}{%- endif %} {%- if page.meta.contact.form and (page.meta.contact.email or page.meta.contact.phone) %}
{%- endif %} {%- if page.meta.contact.form %}Contact form ↗{%- endif %} {%- for ch in page.meta.contact.channels or [] %} {%- if not loop.first or page.meta.contact.email or page.meta.contact.phone or page.meta.contact.form %}
{%- endif %} {{ ch.label or ch.type | capitalize }} ↗{% if ch.note %} — {{ ch.note }}{% endif %} {%- endfor %}
RSS feed {{ page.meta.rss_feed | replace('https://', '') | replace('http://', '') }}
Calendar feed {{ page.meta.ics_feed | replace('https://', '') | replace('http://', '') }}
News page {{ page.meta.news_page | replace('https://', '') | replace('http://', '') }}
Concepts {%- for c in page.meta.concepts %} {{ c | replace('-', ' ') | title }} {%- endfor %}
Last activity {{ ca.date }} {{ ca.method }} {%- if ca.note %}
{%- if ca.url %}{{ ca.note }}{%- else %}{{ ca.note }}{%- endif %} {%- endif %}
{%- endif %} {%- if has_details %}
{% else %}{% endif %} {%- endif %} {{ super() }} {%- macro render_event(e) -%} {%- set href = e.url | with_fragment(e.quote) if e.url else none %} {%- set archive_href = e.url | archive_url_for if e.url else none %}
  • {{ e.date }}{% if e.end_date %}–{{ e.end_date }}{% endif %} {% if href %}{{ e.title }}{% else %}{{ e.title }}{% endif %} {%- if e.coverage_url %}DOD coverage{%- endif %} {%- if e.proof_level or e.url or e.source %}
    {%- if e.proof_level %}Sourcing: {{ e.proof_level | capitalize }}{% endif %} {%- if e.proof_warning %}⚠ Unverified{% endif %} {%- if e.quote %}
    {{ e.quote | e }}
    {% endif %} {%- if e.note %}

    {{ e.note | e }}

    {% endif %} {%- if e.proof_warning %}

    No note, quote, or fragment behind this citation yet — click through to verify manually.

    {% endif %} {%- if href %}↗ View source{% elif e.source %}

    Cited: {{ e.source | e }}

    {% endif %} {%- if archive_href %}🗃️ Archived copy{% endif %}
    {%- endif %}
  • {%- endmacro %} {%- if page.meta.upcoming_events %}

    Upcoming events

    {%- endif %} {%- if page.meta.history_events %}

    History

    {%- endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}