1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { ProjectIcon } from '~/components/icon/icon';
7 import { ProjectResource } from '~/models/project';
8 import { formatDate } from '~/common/formatters';
9 import { ResourceKind } from '~/models/resource';
10 import { resourceLabel } from '~/common/labels';
11 import { DetailsData } from "./details-data";
12 import { DetailsAttribute } from "~/components/details-attribute/details-attribute";
13 import { RichTextEditorLink } from '~/components/rich-text-editor-link/rich-text-editor-link';
15 export class ProjectDetails extends DetailsData<ProjectResource> {
17 getIcon(className?: string) {
18 return <ProjectIcon className={className} />;
23 <DetailsAttribute label='Type' value={resourceLabel(ResourceKind.PROJECT)} />
25 <DetailsAttribute label='Size' value='---' />
26 <DetailsAttribute label='Owner' value={this.item.ownerUuid} lowercaseValue={true} />
27 <DetailsAttribute label='Last modified' value={formatDate(this.item.modifiedAt)} />
28 <DetailsAttribute label='Created at' value={formatDate(this.item.createdAt)} />
30 {/*<DetailsAttribute label='File size' value='1.4 GB' />*/}
31 <DetailsAttribute label='Description'>
32 {this.item.description ?
34 title={`Description of ${this.item.name}`}
35 content={this.item.description}
36 label='Show full description' />