|
57 | 57 | <div class="flex items-center gap-4"> |
58 | 58 | <div class="flex-shrink-0"> |
59 | 59 | <div class="w-12 h-12 bg-purple-100 dark:bg-purple-900/50 rounded-lg flex items-center justify-center"> |
60 | | - <svg class="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
61 | | - <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path> |
62 | | - </svg> |
| 60 | + <%# Map the Hackathon::Team enum statuses to icons %> |
| 61 | + <% case (team.status || '').to_s %> |
| 62 | + <% when 'unqualified' %> |
| 63 | + <!-- Unqualified: x-circle (needs work) --> |
| 64 | + <svg class="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"> |
| 65 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.364 5.636L5.636 18.364" /> |
| 66 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.636 5.636L18.364 18.364" /> |
| 67 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 68 | + </svg> |
| 69 | + <% when 'qualified' %> |
| 70 | + <!-- Qualified: check --> |
| 71 | + <svg class="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"> |
| 72 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4" /> |
| 73 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 74 | + </svg> |
| 75 | + <% when 'late_qualified' %> |
| 76 | + <!-- Late qualified: clock-check (clock with a check) --> |
| 77 | + <svg class="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"> |
| 78 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l2 2" /> |
| 79 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 80 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4" /> |
| 81 | + </svg> |
| 82 | + <% else %> |
| 83 | + <!-- Fallback: generic circle-check --> |
| 84 | + <svg class="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"> |
| 85 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4" /> |
| 86 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 87 | + </svg> |
| 88 | + <% end %> |
63 | 89 | </div> |
64 | 90 | </div> |
65 | 91 | <div> |
66 | | - <p class="text-lg font-bold text-gray-900 dark:text-white"><%= team.status&.titleize || 'Active' %></p> |
| 92 | + <p class="text-lg font-bold text-gray-900 dark:text-white"><%= team.status&.titleize || 'Unqualified' %></p> |
67 | 93 | <p class="text-sm text-gray-600 dark:text-gray-300">Team Status</p> |
68 | 94 | </div> |
69 | 95 | </div> |
|
0 commit comments