Sha256: 1a382e64bcc96f21fb2748f84110b7c9d4fa1cd1052ee6b9f41a23c7ae854312

Contents?: true

Size: 1.02 KB

Versions: 88

Compression:

Stored size: 1.02 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Flex, FlexItem } from '@patternfly/react-core';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import ComponentEnvironments from '../Details/ComponentContentViews/ComponentEnvironments';

const ContentViewVersionCell = ({
  id, latestVersion, latestVersionId, latestVersionEnvironments,
}) => (
  <Flex grow={{ default: 'grow' }}>
    <FlexItem>
      <a href={urlBuilder(`content_views/${id}/versions/${latestVersionId}`, '')}>{`Version ${latestVersion}`}</a>
    </FlexItem>
    <FlexItem>
      <ComponentEnvironments environments={latestVersionEnvironments} />
    </FlexItem>
  </Flex>
);

ContentViewVersionCell.propTypes = {
  id: PropTypes.number.isRequired,
  latestVersion: PropTypes.string.isRequired,
  latestVersionId: PropTypes.number,
  latestVersionEnvironments: PropTypes.instanceOf(Array),
};

ContentViewVersionCell.defaultProps = {
  latestVersionId: null,
  latestVersionEnvironments: [],
};

export default ContentViewVersionCell;

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.15.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.0.rc3 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.0.rc1.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.14.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.13.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.13.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.12.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.13.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.12.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.12.0.rc3 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.12.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.12.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.11.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.11.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.11.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.11.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js