{% extends "page.html" %} {% import "macros.html" as m with context %} {% block titre %}Bases{% endblock %} {% block contenu %}

Bases de connaissance

{% if en_attente %} {# Une information, pas un appel à l'action : rien ne se tranche ici. #}

{{ en_attente|nb('proposition attend', 'propositions attendent') }} une revue La revue se fait hors de cette interface, par le rôle gestionnaire (okf-review){% if attente_jours is not none and attente_jours >= 3 %} ; la plus ancienne attend depuis {{ attente_jours|nb('jour') }}{% endif %}.

{% endif %} {% if bases|length > 1 %}

Ordre : {% for cle, libelle in [('action', 'à traiter d’abord'), ('nom', 'nom'), ('taille', 'taille'), ('activite', 'activité récente')] %}{% if ordre == cle %}{{ libelle }}{% else %}{{ libelle }}{% endif %}{% if not loop.last %} · {% endif %}{% endfor %}

{% endif %} {% macro carte(b) %}
  • {{ b.titre }}

    {{ b.nom }}{% if b.gouvernance == 'draft' %} gouvernance en brouillon{% endif %}

    {{ b.phrase|resume }}

    {{ m.terme('fiche', 'fiches') }}
    {{ b.fiches }}
    {{ m.terme('a-trancher') }}
    {% if b.en_attente %}{{ b.en_attente }}{% else %}0{% endif %}
    {{ m.terme('a-reverifier') }}
    {% if b.a_reverifier %}{{ b.a_reverifier }}{% else %}0{% endif %}
    {% if b.en_attente %}

    okf-review inventory {{ b.nom }}

    {% endif %}

    {% if b.dernier_commit %}dernier commit {{ b.dernier_commit.date|quand }}{% elif b.journal %}journal du {{ b.journal }}{% endif %}

  • {% endmacro %} {% if not bases and not bases_du_hub %}

    Aucune base ne vous est ouverte sur ce hub.

    {% else %} {% if bases_du_hub %}

    Bases du hub — {{ bases_du_hub|length }}, sur l'outil lui-même

    Elles décrivent le hub lui-même : comment chercher, ce que ses utilisateurs en disent.

    {% endif %} {% for regle in regles %}

    Où va une information ? — la règle que suivent les agents entre {% for b in regle.bases %}{{ b }}{% if not loop.last %}{{ ' et ' if loop.revindex == 2 else ', ' }}{% endif %}{% endfor %}

    {% set etapes = regle.lignes|selectattr('cibles')|list %} {% if etapes|length == regle.lignes|length %}
      {% for l in etapes %} {% if l.contexte and loop.first %}
    1. {{ l.contexte }}
    2. {% endif %}
    3. {{ l.question }} ? oui {% for c in l.cibles %}{{ c }}{% endfor %}
    4. {# Le contexte d'une étape suivante (« une proposition par base ») vaut pour la suite : une note sous le « non ». #} {% if not loop.last %}
    5. non{% if etapes[loop.index].contexte %} — {{ etapes[loop.index].contexte }}{% endif %}
    6. {% endif %} {% endfor %}
    {% else %}
      {% for l in regle.lignes %}
    1. {{ l.condition }}{% if l.cibles %} {% for c in l.cibles %}{{ c }}{% endfor %}{% endif %}
    2. {% endfor %}
    {% endif %}

    Leurs descriptions répètent cette règle, mot pour mot : elle est écrite pour qu'un agent choisisse la bonne base, et se lit ici une fois.

    Texte d'origine

    {{ regle.phrase }}

    {% endfor %} {% endif %}
    {% endblock %}