diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-20 10:41:47 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-20 07:41:47 -0700 |
commit | 2a137e97c430312f87500a7ccbfa8de3702c3920 (patch) | |
tree | 63aa224b538707d5fcf04e37f533cda323cfbd33 | |
parent | 4a426be6b8fe0d3e54a8b8269b9848be4df27fe4 (diff) | |
download | chat-2a137e97c430312f87500a7ccbfa8de3702c3920.tar.gz chat-2a137e97c430312f87500a7ccbfa8de3702c3920.tar.bz2 chat-2a137e97c430312f87500a7ccbfa8de3702c3920.zip |
Adding enterprise build hash to about dialog (#3058)
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | i18n/en.json | 2 | ||||
-rw-r--r-- | i18n/es.json | 2 | ||||
-rw-r--r-- | i18n/fr.json | 2 | ||||
-rw-r--r-- | i18n/ja.json | 2 | ||||
-rw-r--r-- | i18n/pt.json | 2 | ||||
-rw-r--r-- | mattermost.go | 2 | ||||
-rw-r--r-- | model/version.go | 1 | ||||
-rw-r--r-- | utils/config.go | 1 | ||||
-rw-r--r-- | webapp/components/about_build_modal.jsx | 6 | ||||
-rw-r--r-- | webapp/i18n/en.json | 1 | ||||
-rw-r--r-- | webapp/sass/routes/_about-modal.scss | 3 |
12 files changed, 20 insertions, 7 deletions
@@ -15,10 +15,12 @@ BUILD_ENTERPRISE_DIR ?= ../enterprise BUILD_ENTERPRISE ?= true BUILD_ENTERPRISE_READY = false BUILD_TYPE_NAME = team +BUILD_HASH_ENTERPRISE = none ifneq ($(wildcard $(BUILD_ENTERPRISE_DIR)/.),) ifeq ($(BUILD_ENTERPRISE),true) BUILD_ENTERPRISE_READY = true BUILD_TYPE_NAME = enterprise + BUILD_HASH_ENTERPRISE = $(shell cd $(BUILD_ENTERPRISE_DIR) && git rev-parse HEAD) else BUILD_ENTERPRISE_READY = false BUILD_TYPE_NAME = team @@ -37,6 +39,7 @@ GO_LINKER_FLAGS ?= -ldflags \ "-X github.com/mattermost/platform/model.BuildNumber=$(BUILD_NUMBER)\ -X 'github.com/mattermost/platform/model.BuildDate=$(BUILD_DATE)'\ -X github.com/mattermost/platform/model.BuildHash=$(BUILD_HASH)\ + -X github.com/mattermost/platform/model.BuildHashEnterprise=$(BUILD_HASH_ENTERPRISE)\ -X github.com/mattermost/platform/model.BuildEnterpriseReady=$(BUILD_ENTERPRISE_READY)" # Output paths diff --git a/i18n/en.json b/i18n/en.json index 99ca3ed72..d73196cf6 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2073,7 +2073,7 @@ }, { "id": "mattermost.current_version", - "translation": "Current version is %v (%v/%v/%v)" + "translation": "Current version is %v (%v/%v/%v/%v)" }, { "id": "mattermost.entreprise_enabled", diff --git a/i18n/es.json b/i18n/es.json index bd2acc5e8..ee04913a0 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -2073,7 +2073,7 @@ }, { "id": "mattermost.current_version", - "translation": "La versión actual es %v (%v/%v/%v)" + "translation": "La versión actual es %v (%v/%v/%v/%v)" }, { "id": "mattermost.entreprise_enabled", diff --git a/i18n/fr.json b/i18n/fr.json index 43d1ddd00..fdad5666f 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -2073,7 +2073,7 @@ }, { "id": "mattermost.current_version", - "translation": "Version courante %v (%v/%v/%v)" + "translation": "Version courante %v (%v/%v/%v/%v)" }, { "id": "mattermost.entreprise_enabled", diff --git a/i18n/ja.json b/i18n/ja.json index b20c5f69b..3745f4146 100644 --- a/i18n/ja.json +++ b/i18n/ja.json @@ -2073,7 +2073,7 @@ }, { "id": "mattermost.current_version", - "translation": "現在のバージョンは%v (%v/%v/%v)です" + "translation": "現在のバージョンは%v (%v/%v/%v/%v)です" }, { "id": "mattermost.entreprise_enabled", diff --git a/i18n/pt.json b/i18n/pt.json index 564d3033e..a0b37ae36 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -2073,7 +2073,7 @@ }, { "id": "mattermost.current_version", - "translation": "Versão atual é %v (%v/%v/%v)" + "translation": "Versão atual é %v (%v/%v/%v/%v)" }, { "id": "mattermost.entreprise_enabled", diff --git a/mattermost.go b/mattermost.go index afac18830..3def1e0d9 100644 --- a/mattermost.go +++ b/mattermost.go @@ -88,7 +88,7 @@ func main() { } pwd, _ := os.Getwd() - l4g.Info(utils.T("mattermost.current_version"), model.CurrentVersion, model.BuildNumber, model.BuildDate, model.BuildHash) + l4g.Info(utils.T("mattermost.current_version"), model.CurrentVersion, model.BuildNumber, model.BuildDate, model.BuildHash, model.BuildHashEnterprise) l4g.Info(utils.T("mattermost.entreprise_enabled"), model.BuildEnterpriseReady) l4g.Info(utils.T("mattermost.working_dir"), pwd) l4g.Info(utils.T("mattermost.config_file"), utils.FindConfigFile(flagConfigFile)) diff --git a/model/version.go b/model/version.go index 4a47f06ef..dde9eccd7 100644 --- a/model/version.go +++ b/model/version.go @@ -33,6 +33,7 @@ var CurrentVersion string = versions[0] var BuildNumber string var BuildDate string var BuildHash string +var BuildHashEnterprise string var BuildEnterpriseReady string var versionsWithoutHotFixes []string diff --git a/utils/config.go b/utils/config.go index 9ac1617cd..313b4e29c 100644 --- a/utils/config.go +++ b/utils/config.go @@ -198,6 +198,7 @@ func getClientConfig(c *model.Config) map[string]string { props["BuildNumber"] = model.BuildNumber props["BuildDate"] = model.BuildDate props["BuildHash"] = model.BuildHash + props["BuildHashEnterprise"] = model.BuildHashEnterprise props["BuildEnterpriseReady"] = model.BuildEnterpriseReady props["SiteName"] = c.TeamSettings.SiteName diff --git a/webapp/components/about_build_modal.jsx b/webapp/components/about_build_modal.jsx index 22354d80e..2f7b3e781 100644 --- a/webapp/components/about_build_modal.jsx +++ b/webapp/components/about_build_modal.jsx @@ -157,6 +157,12 @@ export default class AboutBuildModal extends React.Component { defaultMessage='Build Hash:' /> {config.BuildHash} + <br/> + <FormattedMessage + id='about.hashee' + defaultMessage='EE Build Hash:' + /> + {config.BuildHashEnterprise} </p> <p> <FormattedMessage diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 41e0a9747..de5a72107 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -6,6 +6,7 @@ "about.enterpriseEditionSt": "Modern enterprise communication from behind your firewall.", "about.enterpriseEditione1": "Enterprise Edition", "about.hash": "Build Hash:", + "about.hashee": "EE Build Hash:", "about.licensed": "Licensed by:", "about.number": "Build Number:", "about.teamEditionLearn": "Join the Mattermost community at ", diff --git a/webapp/sass/routes/_about-modal.scss b/webapp/sass/routes/_about-modal.scss index 43d04319d..4bfd04e57 100644 --- a/webapp/sass/routes/_about-modal.scss +++ b/webapp/sass/routes/_about-modal.scss @@ -59,6 +59,7 @@ p { &:first-child { float: left; + text-align: left; } } } @@ -79,4 +80,4 @@ } } -}
\ No newline at end of file +} |