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-3.17.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.17.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc5.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc5 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc4.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.3.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc4 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc3.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc3 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc2.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc2 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc1.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.16.0.rc1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
katello-3.15.0.1 webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js