forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mozilla#1572 from johngruen/reword-restart-page
reword restart page
- Loading branch information
Showing
9 changed files
with
75 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,29 +12,21 @@ export default class Restart extends React.Component { | |
}); | ||
} | ||
|
||
renderSubtitle() { | ||
const { experimentTitle } = this.props; | ||
if (experimentTitle) { | ||
return ( | ||
<h2 data-l10n-id="restartRequiredFromExperiment"> | ||
data-l10n-args={JSON.stringify({ experimentTitle })} | ||
Please restart Firefox <br/> to enable { experimentTitle }. | ||
</h2> | ||
); | ||
} | ||
return ( | ||
<h2 data-l10n-id="restartRequiredFromLanding"> | ||
Please restart Firefox <br/> to choose your features. | ||
</h2> | ||
); | ||
} | ||
|
||
render() { | ||
return ( | ||
<View spaceBetween={true} {...this.props}> | ||
<div className="centered-banner restart-message"> | ||
<p data-l10n-id="restartRequiredSubHeader">Almost done . . .</p> | ||
{ this.renderSubtitle() } | ||
<div className="split-banner restart-message responsive-content-wrapper"> | ||
<div className="restart-image"> | ||
<img src="/static/images/[email protected]" width="208" height="273"/> | ||
</div> | ||
<div className="intro-text"> | ||
<span data-l10n-id="restartIntroLead" className="block lead-in">Preflight checklist</span> | ||
<ol className="banner"> | ||
<li data-l10n-id="restartIntroOne">Restart your browser</li> | ||
<li data-l10n-id="restartIntroTwo">Locate the Test Pilot add-on</li> | ||
<li data-l10n-id="restartIntroThree">Select your experiments</li> | ||
</ol> | ||
</div> | ||
</div> | ||
</View> | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters