feat: tarjeta portal lleva al tablero IT (boardHref shell)
This commit is contained in:
1 parent
23df440b79
commit
39cb4ec89a
3 files changed
+44
-10
No files matched your search
+18
-6
@@ -3,6 +3,7 @@
|
||||
import Link from "next/link";
|
||||
import { useModules, refreshModules } from "@/lib/store";
|
||||
import {
|
||||
boardHref,
|
||||
displayName,
|
||||
envOf,
|
||||
getModuleMeta,
|
||||
@@ -33,6 +34,22 @@ export default function Home() {
|
||||
const env = envOf(m.branch);
|
||||
const url = moduleUrl(m);
|
||||
const name = displayName(m.name);
|
||||
const board = boardHref(m);
|
||||
const boardLink = board.external ? (
|
||||
<a
|
||||
href={board.href}
|
||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||
>
|
||||
{name}
|
||||
</a>
|
||||
) : (
|
||||
<Link
|
||||
href={board.href}
|
||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||
>
|
||||
{name}
|
||||
</Link>
|
||||
);
|
||||
return (
|
||||
<div className="col-md-6" key={m.name}>
|
||||
<div className="app-card p-2">
|
||||
@@ -45,12 +62,7 @@ export default function Home() {
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<Link
|
||||
href={`/m/${m.name}`}
|
||||
className="text-decoration-none text-dark d-block py-2 stretched-link"
|
||||
>
|
||||
{name}
|
||||
</Link>
|
||||
{boardLink}
|
||||
<div className="d-flex align-items-center gap-2">
|
||||
<span className={`status-dot ${status.cls}`} />
|
||||
<small className="text-muted" style={{ fontSize: "0.75rem" }}>
|
||||
|
||||
Reference in new issue
Block a user