Ajout page statistiques

This commit is contained in:
Yannick Le Duc
2025-08-25 17:29:35 +02:00
parent 1f3d607e87
commit caed358661
3 changed files with 357 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ import { Input } from '@/components/ui/input';
import { Progress } from '@/components/ui/progress';
import Navigation from '@/components/Navigation';
import AuthGuard from '@/components/AuthGuard';
import { FolderOpen, Users, FileText, CheckCircle, Clock, Plus } from 'lucide-react';
import { FolderOpen, Users, FileText, CheckCircle, Clock, Plus, BarChart3 } from 'lucide-react';
export const dynamic = 'force-dynamic';
@@ -323,6 +323,14 @@ function AdminPageContent() {
Votants ({campaign.stats.participants})
</Link>
</Button>
{(campaign.status === 'voting' || campaign.status === 'closed') && (
<Button asChild variant="default" className="flex-1">
<Link href={`/admin/campaigns/${campaign.id}/stats`}>
<BarChart3 className="w-4 h-4 mr-2" />
Statistiques
</Link>
</Button>
)}
</div>
</CardContent>
</Card>