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.7.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.2.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.7.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.7.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.7.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.2.2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.2.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.5.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.6.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.5.0 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.5.0.rc2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.5.0.rc1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.0.2 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js
katello-4.4.0.1 webpack/scenes/ContentViews/Table/ContentViewVersionCell.js