Sha256: 93a5803cfba67c64c95d046d2420e7d2070bce601bef2b86607eb21c57d015ee

Contents?: true

Size: 847 Bytes

Versions: 119

Compression:

Stored size: 847 Bytes

Contents

import React from 'react';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
  headerFormatter,
  cellFormatter,
} from '../../../components/pf3Table';

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

119 entries across 119 versions & 1 rubygems

Version Path
katello-4.0.0.rc3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.0.rc2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.0.rc2.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.0.rc2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.17.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js