{% extends "clairvia/base.html" %} {% block page %}summary{% endblock %} {% block meta %}{% endblock %} {% block title %}{{ (sm.page.title if sm and sm.page else t('sm_title')) }} - Clairvia{% endblock %} {% block header %}
{{ ic.mark(28) }}Clairvia {% include "clairvia/_search.html" %}
{% endblock %} {% block main %} {#- Resume d'une page (clairvia.summarize) : recuperee par le proxy, chaque affirmation citant ses passages. -#}

{{ ic.icon('summary') }}{{ t('sm_title') }}

{{ ic.icon('shield') }}{{ t('sm_proxy') }}

{%- if sm and sm.page %} {%- set page = sm.page %}
{{ ic.icon('quote') }}

{{ page.title or page.host }}

{% if sm.status == 'ok' %}{{ ic.icon('check') }}{{ t('sm_by') }}{% endif %}

{{ ic.icon('link') }}{{ page.host }}

{%- if page.truncated %}

{{ ic.icon('info') }}{{ t('sm_truncated', n=page.passages|length) }}

{%- endif %} {%- if sm.status == 'ok' %}
{%- for claim in sm.claims %} {%- if claim.heading %}

{{ claim.text }}

{% else %}

{{ claim.text }}{% for c in claim.citations %}{{ c }}{% endfor %}

{%- endif %} {%- endfor %}

{{ t('sm_cited') }}

    {%- for p in sm.cited %}
  1. {{ p.id }} {%- if p.section %}

    {{ p.section }}

    {% endif %}

    {{ p.text }}

{%- endfor %} {%- else %}

{{ ic.icon('info') }}{{ t('sm_' ~ sm.status) }}

{%- endif %}
{{ t('sm_all', n=page.passages|length) }}
    {%- for p in page.passages %}
  1. {{ p.id }}
    {% if p.section %}

    {{ p.section }}

    {% endif %}

    {{ p.text }}

  2. {%- endfor %}
{%- elif sm %}

{{ ic.icon('alert') }}{{ t('sm_' ~ sm.status, code=sm.code, kind=sm.kind) }}

{%- endif %} {% endblock %}