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.15.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.15.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.0.rc3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.0.rc1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.14.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.13.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.13.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.12.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.13.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.12.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.12.0.rc3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.12.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.12.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.11.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.11.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.11.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.11.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js