This commit is contained in:
parent
406429cbb5
commit
8dd6acfab7
1 changed files with 10 additions and 9 deletions
|
@ -3,10 +3,7 @@ import { WorkLink } from "../mod.ts";
|
||||||
import { renderDate } from "../../../render.ts";
|
import { renderDate } from "../../../render.ts";
|
||||||
import { CHRONOLOGICAL_WORKS } from "../data.ts";
|
import { CHRONOLOGICAL_WORKS } from "../data.ts";
|
||||||
import { RoleList } from "./RoleList.ts";
|
import { RoleList } from "./RoleList.ts";
|
||||||
|
import { TechnologyList } from "./TechnologyList.ts";
|
||||||
const tr = E.bind(null, "tr", []);
|
|
||||||
const td = E.bind(null, "td", []);
|
|
||||||
const th = E.bind(null, "th", []);
|
|
||||||
|
|
||||||
export type ChronologicalWorksTableTranslations = Readonly<
|
export type ChronologicalWorksTableTranslations = Readonly<
|
||||||
Record<
|
Record<
|
||||||
|
@ -20,6 +17,10 @@ export type ChronologicalWorksTableTranslations = Readonly<
|
||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
const tr = E.bind(null, "tr", []);
|
||||||
|
const td = E.bind(null, "td", []);
|
||||||
|
const th = E.bind(null, "th", []);
|
||||||
|
|
||||||
export const ChronologicalWorksTable = (
|
export const ChronologicalWorksTable = (
|
||||||
i18n: ChronologicalWorksTableTranslations,
|
i18n: ChronologicalWorksTableTranslations,
|
||||||
): AnyNode =>
|
): AnyNode =>
|
||||||
|
@ -37,17 +38,17 @@ export const ChronologicalWorksTable = (
|
||||||
E(
|
E(
|
||||||
"tbody",
|
"tbody",
|
||||||
[],
|
[],
|
||||||
CHRONOLOGICAL_WORKS.map((work) => {
|
CHRONOLOGICAL_WORKS.map((work) =>
|
||||||
return tr([
|
tr([
|
||||||
td([WorkLink(work)]),
|
td([WorkLink(work)]),
|
||||||
td(work.description),
|
td(work.description),
|
||||||
td([RoleList(work.roles)]),
|
td([RoleList(work.roles)]),
|
||||||
td(work.technologies.join(", ")),
|
td([TechnologyList(work.technologies)]),
|
||||||
td(renderDate(work.startDate)),
|
td(renderDate(work.startDate)),
|
||||||
td(
|
td(
|
||||||
work.endDate ? renderDate(work.endDate) : work.status,
|
work.endDate ? renderDate(work.endDate) : work.status,
|
||||||
),
|
),
|
||||||
]);
|
])
|
||||||
}),
|
),
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue