Sha256: 287cd218af183ad6c8b9b5717f7fb9c3137a215c8833d9874970223536915b9a

Contents?: true

Size: 870 Bytes

Versions: 8

Compression:

Stored size: 870 Bytes

Contents

import React from 'react';
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>
            <a href={urlBuilder(`products/${rowData.product_id}/repositories`, '', rowData.id)}>
              {rowData.name}
            </a>
          </td>
        ),
      ],
    },
  },
  {
    property: 'product_name',
    header: {
      label: __('Product'),
      formatters: [headerFormatter],
    },
    cell: {
      formatters: [cellFormatter],
    },
  },
];

export default TableSchema;

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
katello-3.13.4 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.3 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.2 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.1 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.0 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.0.rc2.1 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.0.rc2 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js
katello-3.13.0.rc1 webpack/scenes/ModuleStreams/Details/Repositories/TableSchema.js