From 6a10941cb3e9d6e1b42be1f58c4b502cf0846b69 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Mon, 4 Sep 2017 04:13:46 +0800 Subject: [PLT-6996] On "About Mattermost", add notes with links to notice.txt which has list of copyrights of open source components used (#7315) * on "About Mattermost", add notes with links to notice.txt which has list of copyrights of open source components used * remove apps from link * Minor UI update --- webapp/components/about_build_modal.jsx | 12 ++++++++-- webapp/i18n/en.json | 1 + webapp/sass/routes/_about-modal.scss | 12 ++++++++++ .../__snapshots__/about_build_modal.test.jsx.snap | 26 ++++++++++++++++++++-- 4 files changed, 47 insertions(+), 4 deletions(-) (limited to 'webapp') diff --git a/webapp/components/about_build_modal.jsx b/webapp/components/about_build_modal.jsx index 923b86609..4621cfc89 100644 --- a/webapp/components/about_build_modal.jsx +++ b/webapp/components/about_build_modal.jsx @@ -3,7 +3,7 @@ import {Modal} from 'react-bootstrap'; -import {FormattedMessage} from 'react-intl'; +import {FormattedMessage, FormattedHTMLMessage} from 'react-intl'; import PropTypes from 'prop-types'; @@ -167,7 +167,15 @@ export default class AboutBuildModal extends React.Component { /> -
+
+

+ +

+
+

platform, desktop and mobile apps.", "about.number": "Build Number:", "about.teamEditionLearn": "Join the Mattermost community at ", "about.teamEditionSt": "All your team communication in one place, instantly searchable and accessible anywhere.", diff --git a/webapp/sass/routes/_about-modal.scss b/webapp/sass/routes/_about-modal.scss index bb583c73a..539130ad0 100644 --- a/webapp/sass/routes/_about-modal.scss +++ b/webapp/sass/routes/_about-modal.scss @@ -87,6 +87,18 @@ } } + .about-modal__notice { + @include opacity(.8); + font-size: .79em; + text-align: right; + + p { + &:first-child { + text-align: left; + } + } + } + .about-modal__logo { @include opacity(.9); padding: 0 40px 0 20px; diff --git a/webapp/tests/components/__snapshots__/about_build_modal.test.jsx.snap b/webapp/tests/components/__snapshots__/about_build_modal.test.jsx.snap index 105c97546..b45b6b7f0 100644 --- a/webapp/tests/components/__snapshots__/about_build_modal.test.jsx.snap +++ b/webapp/tests/components/__snapshots__/about_build_modal.test.jsx.snap @@ -141,7 +141,18 @@ exports[`components/AboutBuildModal should match snapshot for enterprise edition

+

+ platform, desktop and mobile apps." + id="about.notice" + values={Object {}} + /> +

+
+

+

+ platform, desktop and mobile apps." + id="about.notice" + values={Object {}} + /> +

+
+