Files
project-managment/templates/dashboard/partials/tickets_per_project_chart.html
T
sankalp 71b700388b feat(templates): add polished login UI with Tailwind and Alpine.js
Enhances user experience with dark‑mode detection, responsive layout, and streamlined role selection workflow
2026-06-28 14:15:39 +05:45

28 lines
1.3 KiB
HTML

<div id="tickets-per-project-chart" class="rounded-xl bg-white dark:bg-gray-950 shadow-sm ring-1 ring-gray-950/5 dark:ring-white/10">
<div class="flex items-center gap-3 px-6 py-4 border-b border-gray-100 dark:border-gray-600">
<div>
<h3 class="text-base font-semibold text-gray-900 dark:text-white">Number of tickets per project</h3>
<p class="text-sm text-gray-500 dark:text-gray-400 mt-0.5">Distribution across active projects</p>
</div>
</div>
<div class="p-6">
<div class="space-y-3">
{% for item in chart_data %}
<div>
<div class="flex justify-between text-sm mb-1">
<span class="font-medium truncate text-gray-900 dark:text-white">{{ item.name }}</span>
<span class="text-gray-500 dark:text-gray-400">{{ item.count }}</span>
</div>
<div class="w-full bg-gray-100 dark:bg-gray-800 rounded-full h-2.5 overflow-hidden">
<div class="h-full rounded-full transition-all duration-500 ease-out" style="width:{{ item.pct }}%; background-color: {{ item.color }}"></div>
</div>
</div>
{% empty %}
<div class="text-center py-8 text-gray-400">
<i class="fas fa-chart-bar text-3xl block mb-2"></i>
<p class="text-sm">No project data available</p>
</div>
{% endfor %}
</div>
</div>
</div>