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

Version Path
katello-3.16.2 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.1.2 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.1.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc5.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc5 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc4.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.15.3.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.15.3 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc4 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc3.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.15.2 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc3 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc2.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc2 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.15.1.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc1.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.15.1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
katello-3.16.0.rc1 webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js