Sha256: f6050c69cc994bf3d245e532c2f6b66a7f564a8517a0276538dba2252fe15030

Contents?: true

Size: 1.11 KB

Versions: 161

Compression:

Stored size: 1.11 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';

const SubscriptionDetailProduct = ({ content }) => (
  <Row key={content.id}>
    <Col sm={12}>
      <Row>
        <u>{content.name}</u>
      </Row>
    </Col>
    <Row>
      <Col sm={3}>{__('Content Download URL')}</Col>
      <Col sm={9}>{content.content_url} </Col>
    </Row>
    <Row>
      <Col sm={3}>{__('GPG Key URL')}</Col>
      <Col sm={9}>{content.gpg_url} </Col>
    </Row>
    <Row>
      <Col sm={3}>{__('Repo Type')}</Col>
      <Col sm={9}>{content.type} </Col>
    </Row>
    <Row>
      <Col sm={3}>{__('Enabled')}</Col>
      <Col sm={9}>{content.enabled ? __('yes') : __('no')} </Col>
    </Row>
  </Row>
);

SubscriptionDetailProduct.propTypes = {
  content: PropTypes.shape({
    id: PropTypes.string,
    name: PropTypes.string,
    enabled: PropTypes.bool,
    content_url: PropTypes.string,
    gpg_url: PropTypes.string,
    type: PropTypes.string,
    enable: PropTypes.bool,
  }).isRequired,
};

export default SubscriptionDetailProduct;

Version data entries

161 entries across 161 versions & 1 rubygems

Version Path
katello-4.2.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.18.4 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.1.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.18.3.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0.rc2.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0.rc2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.18.3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0.rc1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.1.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-4.0.0.rc3.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js