{% extends "clairvia/base.html" %} {% block page %}help{% endblock %} {% block meta %}{% endblock %} {% block title %}{{ t('help_open') }} - Kopilvia - Clairvia{% endblock %} {% block header %}
{{ ic.mark(28) }}Clairvia
{% endblock %} {% block main %} {%- import "clairvia/_ai.html" as ai with context %} {#- Aide (clairvia.help) : reponse citee ou « je ne sais pas », etat en direct, et toutes les rubriques en local. -#}

{{ ic.icon('help') }}{{ t('help_open') }}

{{ ic.icon('chat') }}{{ t('help_by') }}

{{ ic.icon('chevron-left', 'flip-rtl') }}{{ t('help_back') }}

{%- if help_lang != lang %}

{{ ic.icon('languages') }}{{ t('help_lang_note') }}

{%- endif %}

{{ ic.icon('lock') }}{{ t('help_private') }}

{%- if reply %}
{{ ic.icon('quote') }}

{{ t('help_answer') }}

{{ ai.ai_mention(reply, key='help_ai') }}

{{ t('help_your_q') }} {{ question }}

{%- if reply.action %} {#- Standard IHM § 8.1 : une commande du catalogue, acceptee par l'hote (clairvia.commands.run_command). Le formulaire est CELUI de l'interface pour ce geste (meme route, memes champs) : rien n'est fait avant « Faire ». #}

{{ ic.icon('target') }}{{ t('cmd_proposed') }} {{ t(reply.action.title) }} {%- for key, value in reply.action.shown %} {{ t(key) if key else value }}{% endfor %}

{%- if reply.action.nature == 'preparer' %} {#- § 8.6 : geste qui detruit ou expose sans retour -- on ouvre sa page, l'utilisateur le fait lui-meme. #}

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

{%- else %}
{%- for name, value in reply.action.fields %} {%- endfor %} {%- if reply.action.next %}{% endif %}
{{ t('cmd_cancel') }}

{{ ic.icon('lock') }}{{ t('cmd_note') }}

{%- endif %}
{%- endif %} {%- if reply.refused %} {%- set refused = reply.refused %}

{{ ic.icon('alert') }} {%- if refused.error == 'unavailable' %}{{ t('cmd_refused_unavailable', title=t(refused.title), reason=t('cmd_why_' ~ refused.reason)) }} {%- elif refused.error == 'invalid' and refused.title %}{{ t('cmd_refused_invalid', title=t(refused.title)) }} {%- else %}{{ t('cmd_refused_unknown') }}{% endif %}

{%- endif %} {%- if reply.claims %}
{%- for claim in reply.claims %} {%- if claim.heading %}

{{ claim.text }}

{% else %}

{{ claim_text(claim.text) }}{% for c in claim.citations %}{{ c }}{% endfor %}

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

{{ t('ans_sources') }}

    {%- for s in reply.cited %}
  1. {{ s.id }}{{ s.title }}
  2. {%- endfor %}
{%- elif reply.status == 'action' %} {%- elif reply.status == 'too_long' %}

{{ ic.icon('alert') }}{{ t('help_too_long', max=max_question) }}

{%- else %} {%- if reply.status == 'unknown' %}

{{ ic.icon('info') }}{{ t('help_unknown') }}

{%- else %}

{{ ic.icon('alert') }}{{ t('help_offline') if configured else t('help_offline_off') }}

{%- endif %}

{{ t('help_matches') }}

{%- endif %} {%- if reply.status in ('unknown', 'offline') %}

{{ t('help_who') }}

{{ ic.icon('user') }} {%- if contact %}{{ t('help_contact') }}{% else %}{{ t('help_no_contact') }}{% endif %}

{%- endif %}
{%- endif %}
{{ ic.icon('target') }}

{{ state_title }}

{{ t('help_state_d') }}

{{ t('help_topics') }}

{{ t('help_all') }}

{%- for art in all_articles %}

{{ art.title }}

{{ art.text }}

{%- endfor %}
{% endblock %}