Sha256: 378cd67be23878561828348395e6e4bd026435d125a41b6c19d487ec4b1384a1

Contents?: true

Size: 1.33 KB

Versions: 39

Compression:

Stored size: 1.33 KB

Contents

import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
  headerFormatter,
  cellFormatter,
} from '../../move_to_foreman/components/common/table';


const TableSchema = [
  {
    property: 'name',
    header: {
      label: __('Name'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [
        (value, { rowData }) => (
          <td>
            <Link to={urlBuilder('module_streams', '', rowData.id)}>{rowData.name}</Link>
          </td>
        ),
      ],
    },
  },
  {
    property: 'stream',
    header: {
      label: __('Stream'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [cellFormatter],
    },
  },
  {
    property: 'version',
    header: {
      label: __('Version'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [cellFormatter],
    },
  },
  {
    property: 'context',
    header: {
      label: __('Context'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [cellFormatter],
    },
  },
  {
    property: 'arch',
    header: {
      label: __('Arch'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [cellFormatter],
    },
  },
];

export default TableSchema;

Version data entries

39 entries across 39 versions & 1 rubygems

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