feat: add View Project links to admin tables, conditionally show Awards tab
- IndividualAssignmentsTable: add View Project (new tab) as first dropdown item - AwardShortlist: make project title a clickable link opening in new tab - ProjectStatesTable: change View Project from same-tab Link to new-tab anchor - Round page: Awards tab now only shown when roundAwards.length > 0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -303,7 +303,15 @@ export function AwardShortlist({
|
||||
<td className="px-3 py-2">
|
||||
<div>
|
||||
<p className={`font-medium ${isTop5 ? 'text-amber-900' : ''}`}>
|
||||
{e.project.title}
|
||||
<a
|
||||
href={`/admin/projects/${e.project.id}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-primary hover:underline font-medium"
|
||||
onClick={(ev) => ev.stopPropagation()}
|
||||
>
|
||||
{e.project.title}
|
||||
</a>
|
||||
</p>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{[e.project.teamName, e.project.country, e.project.competitionCategory].filter(Boolean).join(', ') || '—'}
|
||||
|
||||
Reference in New Issue
Block a user