@@ -22,6 +22,7 @@ import * as React from 'react'; | |||
import { Helmet } from 'react-helmet-async'; | |||
import { FormattedMessage } from 'react-intl'; | |||
import { Link } from 'react-router'; | |||
import { Alert } from 'sonar-ui-common/components/ui/Alert'; | |||
import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; | |||
import { translate } from 'sonar-ui-common/helpers/l10n'; | |||
import { | |||
@@ -167,7 +168,7 @@ export class App extends React.PureComponent<Props, State> { | |||
<div className="page-description"> | |||
<p>{translate('marketplace.page.plugins.description')}</p> | |||
{currentEdition !== EditionKey.community && ( | |||
<p className="spacer-top"> | |||
<Alert className="spacer-top" variant="info"> | |||
<FormattedMessage | |||
id="marketplace.page.plugins.description2" | |||
defaultMessage={translate('marketplace.page.plugins.description2')} | |||
@@ -181,7 +182,7 @@ export class App extends React.PureComponent<Props, State> { | |||
) | |||
}} | |||
/> | |||
</p> | |||
</Alert> | |||
)} | |||
</div> | |||
</header> |
@@ -33,8 +33,9 @@ exports[`should render correctly: loaded 1`] = ` | |||
<p> | |||
marketplace.page.plugins.description | |||
</p> | |||
<p | |||
<Alert | |||
className="spacer-top" | |||
variant="info" | |||
> | |||
<FormattedMessage | |||
defaultMessage="marketplace.page.plugins.description2" | |||
@@ -52,7 +53,7 @@ exports[`should render correctly: loaded 1`] = ` | |||
} | |||
} | |||
/> | |||
</p> | |||
</Alert> | |||
</div> | |||
</header> | |||
<PluginRiskConsentBox | |||
@@ -131,8 +132,9 @@ exports[`should render correctly: loading 1`] = ` | |||
<p> | |||
marketplace.page.plugins.description | |||
</p> | |||
<p | |||
<Alert | |||
className="spacer-top" | |||
variant="info" | |||
> | |||
<FormattedMessage | |||
defaultMessage="marketplace.page.plugins.description2" | |||
@@ -150,7 +152,7 @@ exports[`should render correctly: loading 1`] = ` | |||
} | |||
} | |||
/> | |||
</p> | |||
</Alert> | |||
</div> | |||
</header> | |||
<PluginRiskConsentBox |
@@ -2752,7 +2752,7 @@ marketplace.search=Search by features, tags, or categories... | |||
marketplace.risk_consent.title=Installation of plugins | |||
marketplace.risk_consent.description=Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins. | |||
marketplace.risk_consent.installation=You can install plugins directly from the list below after you acknowledge the risk. | |||
marketplace.risk_consent.action=I understand the risk. | |||
marketplace.risk_consent.action=I understand the risk | |||
plugin_risk_consent.title=Installation of plugins | |||
plugin_risk_consent.description=A plugin has been detected. |