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.2.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.4 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.1.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.3.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0.rc2.2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0.rc2.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-3.18.3 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0.rc2 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0.rc1.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.1.0.rc1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.0 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js
katello-4.0.0.rc3.1 webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js