Skip to content

Commit

Permalink
[dashboard] Accelerate links from the Prebuilds page
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes authored and roboquat committed Oct 7, 2021
1 parent 1f47356 commit fe991b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/dashboard/src/projects/Prebuilds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { getGitpodService } from "../service/service";
import { TeamsContext, getCurrentTeam } from "../teams/teams-context";
import { ContextMenuEntry } from "../components/ContextMenu";
import { shortCommitMessage } from "./render-utils";
import { Link } from "react-router-dom";

export default function () {
const location = useLocation();
Expand Down Expand Up @@ -170,13 +171,13 @@ export default function () {
</Item>
{prebuilds.filter(filter).sort(prebuildSorter).map((p, index) => <Item key={`prebuild-${p.info.id}`} className="grid grid-cols-3">
<ItemField className="flex items-center">
<a href={`/${!!team ? 't/'+team.slug : 'projects'}/${projectName}/${p.info.id}`} className="cursor-pointer">
<Link to={`/${!!team ? 't/'+team.slug : 'projects'}/${projectName}/${p.info.id}`} className="cursor-pointer">
<div className="text-base text-gray-900 dark:text-gray-50 font-medium uppercase mb-1">
<div className="inline-block align-text-bottom mr-2 w-4 h-4">{prebuildStatusIcon(p)}</div>
{prebuildStatusLabel(p)}
</div>
<p>{p.info.startedByAvatar && <img className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2" src={p.info.startedByAvatar || ''} alt={p.info.startedBy} />}Triggered {formatDate(p.info.startedAt)}</p>
</a>
</Link>
</ItemField>
<ItemField className="flex items-center">
<div>
Expand Down

0 comments on commit fe991b8

Please sign in to comment.