Sha256: c3dbce563235fc465f3257a647dfb5a29541ec9952aa44e735a169c37b81b8aa

Contents?: true

Size: 867 Bytes

Versions: 31

Compression:

Stored size: 867 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

31 entries across 31 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.1.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc5.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc5 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc4.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.15.3.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.15.3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc4 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc3.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.15.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.15.1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.15.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.16.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js