Sha256: a50a22113bb2599905eb93a0aaa29ac1075f51f443f8d61a92968f6a59cce83c
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { translate as __ } from 'foremanReact/common/I18n'; import EmptyState from 'foremanReact/components/common/EmptyState'; import { foremanUrl, getManualURL } from 'foremanReact/common/helpers'; export const WelcomeEnv = ({ canCreate }) => { const action = canCreate && { title: __('Create Puppet Environment'), url: foremanUrl('/foreman_puppet/environments/new'), }; const description = ( <> <FormattedMessage id="puppetenv-welcome" defaultMessage={__( 'If you are planning to use Foreman as an external node classifier you should provide information about one or more environments.{newLine}This information is commonly imported from a pre-existing Puppet configuration by the use of the {puppetClassesLinkToDocs} and environment importer.' )} values={{ newLine: <br />, puppetClassesLinkToDocs: ( <a target="_blank" href={getManualURL('4.2.2Classes')} rel="noreferrer" > {__('Puppet classes')} </a> ), }} /> </> ); return ( <EmptyState icon="th" iconType="fa" header={__(' Puppet Environments')} description={description} documentation={{ url: getManualURL('4.2.1Environments') }} action={action} /> ); }; WelcomeEnv.propTypes = { canCreate: PropTypes.bool, }; WelcomeEnv.defaultProps = { canCreate: false, }; export default WelcomeEnv;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_puppet-5.1.3 | webpack/src/Components/Environments/Welcome.js |
foreman_puppet-5.1.2 | webpack/src/Components/Environments/Welcome.js |