Sha256: 222e266c899640c3ee9e0f993c2b0797ec230203653f44a40c5c75c1719aa3f9

Contents?: true

Size: 996 Bytes

Versions: 100

Compression:

Stored size: 996 Bytes

Contents

import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo';
import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories';

export const displayMap = new Map([
  ['name', __('Name')],
  ['description', __('Description')],
  ['namespace', __('Author')],
  ['version', __('Version')],
  ['checksum', __('Checksum')],
  ['tags', __('Tags')],
]);

export default (detailInfo) => {
  const { repositories } = detailInfo;

  return [
    {
      key: 1,
      tabHeader: __('Details'),
      tabContent: (
        <ContentDetailInfo contentDetails={detailInfo} displayMap={displayMap} />
      ),
    },
    {
      key: 2,
      tabHeader: __('Repositories'),
      tabContent: (repositories && repositories.length ?
        <ContentDetailRepositories repositories={repositories} /> :
        __('No repositories to show')
      ),
    },
  ];
};

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
katello-4.3.0.rc1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.0.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.4 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.0.3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.0.1.rc3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-3.18.5 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.0.1.rc2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.0.rc2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.3 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.2.0.rc1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.0.2.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.2.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.0.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-3.18.4 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.1.0 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-4.0.1.2 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js
katello-3.18.3.1 webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js