Fix resync: retirer data-loading, ajouter texte explication cache 10min

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalid MOUTAOUAKIL 2026-04-06 23:07:21 +02:00
parent c139dfbaa2
commit c94d952948

View File

@ -38,11 +38,13 @@
{% endif %}
{% if search %}
<div class="flex justify-between items-center mb-2">
<div>
<p class="text-xs text-gray-500">
{% if api_msg %}{{ api_msg }}{% else %}{{ assets|length }} résultat(s){% endif %}
{% if cache_info %}<span class="text-gray-600 ml-2">(cache: {{ cache_info.active }} entrées)</span>{% endif %}
</p>
<a href="/qualys/search?field={{ field }}&search={{ search }}&force=1" class="btn-sm bg-cyber-border text-cyber-accent px-3 py-1 text-xs" data-loading="Resync API...">Resync temps réel</a>
<p class="text-xs text-gray-600 mt-1">Les résultats sont mis en cache pendant 10 minutes. Cliquez sur "Resync" pour forcer un appel API Qualys en temps réel.</p>
</div>
<a href="/qualys/search?field={{ field }}&search={{ search }}&force=1" class="btn-sm bg-cyber-border text-cyber-accent px-3 py-1 text-xs whitespace-nowrap ml-3">Resync API</a>
</div>
{% endif %}