Spaces:
Build error
Build error
| {% extends "layouts/base.njk" %} | |
| {% block title %}Erreur - {{ site_name | default('WhatsApp Channels') }}{% endblock %} | |
| {% block content %} | |
| <div class="max-w-2xl mx-auto text-center py-16"> | |
| <div class="mb-8"> | |
| <div class="w-20 h-20 mx-auto mb-4 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center"> | |
| <svg class="w-10 h-10 text-red-600 dark:text-red-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/> | |
| </svg> | |
| </div> | |
| </div> | |
| <h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">Une erreur s'est produite</h2> | |
| <p class="text-gray-600 dark:text-gray-400 mb-8"> | |
| {% if statusCode === 500 %} | |
| Erreur interne du serveur. Notre équipe a été notifiée. | |
| {% elif statusCode === 403 %} | |
| Accès refusé. Vous n'avez pas les permissions nécessaires. | |
| {% elif statusCode === 401 %} | |
| Veuillez vous connecter pour accéder à cette page. | |
| {% else %} | |
| {{ error }} | |
| {% endif %} | |
| </p> | |
| <div class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 mb-8 text-left"> | |
| <p class="text-sm text-gray-500 dark:text-gray-400 font-mono">{{ error }}</p> | |
| </div> | |
| <div class="flex flex-col sm:flex-row gap-4 justify-center"> | |
| <a href="/" class="btn btn-primary">Retour à l'accueil</a> | |
| <a href="javascript:history.back()" class="btn btn-secondary">Page précédente</a> | |
| </div> | |
| {% if statusCode === 500 %} | |
| <div class="mt-8 p-4 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg"> | |
| <p class="text-sm text-yellow-800 dark:text-yellow-200"> | |
| <strong>Développeurs :</strong> Consultez les logs dans <code class="px-1 bg-yellow-100 dark:bg-yellow-900 rounded">/admin/logs</code> pour plus de détails. | |
| </p> | |
| </div> | |
| {% endif %} | |
| </div> | |
| {% endblock %} |