Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/foreman_puppet/config_groups/welcome.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
:iconType => 'fa',
:header => _('Config Groups'),
:description => description,
:documentation => { :url => documentation_url("using-config-groups") },
:documentation => { :url => documentation_url("Managing_Configurations_Puppet", type: 'docs', chapter: 'creating-a-puppet-config-group_managing-configurations-puppet') },
:action => action
}) %>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% title _("Smart Class Parameters") %>
<% title_actions documentation_button('4.2.5ParameterizedClasses') %>
<% title_actions documentation_button('Managing_Configurations_Puppet', type: 'docs', chapter: 'Configuring_Puppet_Smart_Class_Parameters_managing-configurations-puppet') %>
<table class="<%= table_css_classes 'table-fixed' %>">
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
:iconType => 'fa',
:header => _('Smart Class Parameters'),
:description => description,
:documentation => { :url => documentation_url("4.2.5SmartMatchers") },
:documentation => { :url => documentation_url('Managing_Configurations_Puppet', type: 'docs', chapter: 'Configuring_Puppet_Smart_Class_Parameters_managing-configurations-puppet') },
}) %>
2 changes: 1 addition & 1 deletion app/views/foreman_puppet/puppetclasses/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
</div>
<div class='col-md-6 text-right'>
<%= documentation_button('4.2.5ParameterizedClasses') %>
<%= documentation_button('Managing_Configurations_Puppet', type: 'docs', chapter: 'Configuring_Puppet_Smart_Class_Parameters_managing-configurations-puppet') %>
</div>
</div>
<div class="smart-var-left col-md-3">
Expand Down
2 changes: 1 addition & 1 deletion app/views/foreman_puppet/puppetclasses/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% title _("Puppet Classes") %>

<% title_actions import_proxy_select(hash_for_import_environments_puppetclasses_path.merge(engine: foreman_puppet)),
documentation_button('4.2.2Classes') %>
documentation_button('Managing_Configurations_Puppet', type: 'docs', chapter: 'Importing_Puppet_Classes_and_Environments_managing-configurations-puppet') %>

<table class="<%= table_css_classes 'table-fixed' %>">
<thead>
Expand Down
14 changes: 11 additions & 3 deletions webpack/src/Components/Environments/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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';
import { foremanUrl, getDocsURL } from 'foremanReact/common/helpers';

export const WelcomeEnv = ({ canCreate }) => {
const action = canCreate && {
Expand All @@ -23,7 +23,10 @@ export const WelcomeEnv = ({ canCreate }) => {
puppetClassesLinkToDocs: (
<a
target="_blank"
href={getManualURL('4.2.2Classes')}
href={getDocsURL(
'Managing_Configurations_Puppet',
'Importing_Puppet_Classes_and_Environments_managing-configurations-puppet'
)}
rel="noreferrer"
>
{__('Puppet classes')}
Expand All @@ -39,7 +42,12 @@ export const WelcomeEnv = ({ canCreate }) => {
iconType="fa"
header={__('Puppet Environments')}
description={description}
documentation={{ url: getManualURL('4.2.1Environments') }}
documentation={{
url: getDocsURL(
'Managing_Configurations_Puppet',
'Creating_a_Custom_Puppet_Environment_managing-configurations-puppet'
),
}}
action={action}
/>
);
Expand Down
Loading