{% extends 'base.html' %} {% block title %}Bibliothèque — Admin OpenCare{% endblock %} {% block content %}
{% include 'admin/_sidebar.html' %}

Bibliothèque

{{ recs|length }} recommandation(s) approuvée(s) et active(s)

{% if recs %} {% set current_domain = namespace(val='') %} {% for rec in recs %} {% if rec.domain != current_domain.val %} {% set current_domain.val = rec.domain %}
{{ domain_labels.get(rec.domain, (rec.domain, ''))[1] }} {{ domain_labels.get(rec.domain, (rec.domain, ''))[0] }} ({{ recs|selectattr('domain', 'equalto', rec.domain)|list|length }})
{% endif %}
Niveau {{ rec.evidence_level }} Priorité {{ rec.priority }} {{ rec.reviewed_at.strftime('%d/%m/%Y') if rec.reviewed_at else '—' }}
{{ rec.title }}

{{ rec.summary }}

{% if rec.source_title %}
{{ rec.source_title }} {% if rec.source_doi %} — {{ rec.source_doi }}{% endif %}
{% endif %}
{% if rec.target_sex and rec.target_sex != 'all' %} {{ 'Hommes' if rec.target_sex == 'male' else 'Femmes' }} {% endif %} {% if rec.target_age_min or rec.target_age_max %} {{ rec.target_age_min or '?' }}–{{ rec.target_age_max or '∞' }} ans {% endif %} {% for c in rec.required_conditions %} Si: {{ c.replace('_',' ') }} {% endfor %} {% for c in rec.excluded_conditions %} Exclu: {{ c.replace('_',' ') }} {% endfor %} {% if not rec.required_conditions and not rec.required_health_goals and not rec.required_diet_types and not rec.required_activity_levels %} Universel {% endif %}
{% endfor %} {% else %}

Aucune recommandation approuvée. Allez dans la file d'attente pour en valider.

Aller à la file d'attente
{% endif %}
{% endblock %}