Sha256: 3cc6f18bd74d27cd8ce1add61e7956ec42f3a2a713d3f3b1164836bfaf3e0e81
Contents?: true
Size: 1.19 KB
Versions: 31
Compression:
Stored size: 1.19 KB
Contents
import React from 'react'; import { Link } from 'react-router-dom'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { headerFormatter, cellFormatter, } from '../../move_to_foreman/components/common/table/formatters'; const TableSchema = [ { property: 'name', header: { label: __('Name'), formatters: [headerFormatter], }, cell: { formatters: [ (value, { rowData }) => ( <td> <Link to={urlBuilder('ansible_collections', '', rowData.id)}>{rowData.name}</Link> </td> ), ], }, }, { property: 'namespace', header: { label: __('Author'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, { property: 'version', header: { label: __('Version'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, { property: 'checksum', header: { label: __('Checksum'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, ]; export default TableSchema;
Version data entries
31 entries across 31 versions & 1 rubygems