diff --git a/app/settings/email/email.controller.js b/app/settings/email/email.controller.js
index ee81aa0ce..c46f508d0 100644
--- a/app/settings/email/email.controller.js
+++ b/app/settings/email/email.controller.js
@@ -66,6 +66,13 @@ import angular from 'angular'
desc: 'Design and development on GE’s platform for the Industrial Internet of Things',
enabled: false,
dirty: false
+ },
+ {
+ id: 'TOPCODER_NL_IBM_COGNITIVE',
+ name: 'IBM Cognitive Community Newsletter',
+ desc: 'IBM Cognitive Community Newsletter',
+ enabled: false,
+ dirty: false
}
]
diff --git a/app/skill-picker/skill-picker.controller.js b/app/skill-picker/skill-picker.controller.js
index 4cfb9713c..c6fa768eb 100644
--- a/app/skill-picker/skill-picker.controller.js
+++ b/app/skill-picker/skill-picker.controller.js
@@ -13,6 +13,7 @@ import _ from 'lodash'
vm.ASSET_PREFIX = CONSTANTS.ASSET_PREFIX
vm.IOS_PROGRAM_ID = CONSTANTS.SWIFT_PROGRAM_ID
vm.PREDIX_PROGRAM_ID = CONSTANTS.PREDIX_PROGRAM_ID
+ vm.IBM_COGNITIVE_PROGRAM_ID = CONSTANTS.IBM_COGNITIVE_PROGRAM_ID
vm.submitSkills = submitSkills
vm.featuredSkills = featuredSkills
vm.userId = userProfile.userId
@@ -63,10 +64,30 @@ import _ from 'lodash'
* Initializes the communities to show in the communities section.
*/
function initCommunities() {
- vm.communities['ios'] = { displayName: 'iOS', programId: vm.IOS_PROGRAM_ID, status: false, dirty: false, display: true}
- vm.communities['predix'] = { displayName: 'Predix', programId: vm.PREDIX_PROGRAM_ID, status: false, dirty: false, display: true}
+ vm.communities['ios'] = {
+ displayName: 'iOS',
+ programId: vm.IOS_PROGRAM_ID,
+ status: false,
+ dirty: false,
+ display: true
+ }
+ vm.communities['predix'] = {
+ displayName: 'Predix',
+ programId: vm.PREDIX_PROGRAM_ID,
+ status: false,
+ dirty: false,
+ display: true
+ }
+ vm.communities['ibm_cognitive'] = {
+ displayName: 'IBM Cognitive',
+ programId: vm.IBM_COGNITIVE_PROGRAM_ID,
+ status: false,
+ dirty: false,
+ display: true
+ }
_addWatchToCommunity(vm.communities['ios'])
_addWatchToCommunity(vm.communities['predix'])
+ _addWatchToCommunity(vm.communities['ibm_cognitive'])
}
/**
diff --git a/app/skill-picker/skill-picker.jade b/app/skill-picker/skill-picker.jade
index 0a41b53f7..8d18a8455 100644
--- a/app/skill-picker/skill-picker.jade
+++ b/app/skill-picker/skill-picker.jade
@@ -14,12 +14,15 @@
img(ng-if="communityKey == 'ios' && !community.status", src=require("../../assets/images/ico-ios-community-grey.svg"))
img(ng-if="communityKey == 'predix' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
img(ng-if="communityKey == 'predix' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
+ img(ng-if="communityKey == 'ibm_cognitive' && community.status", src=require("../../assets/images/ico-ibm_cognitive-community.svg"))
+ img(ng-if="communityKey == 'ibm_cognitive' && !community.status", src=require("../../assets/images/ico-ibm_cognitive-community-grey.svg"))
.community__text
span.community__title(class="{{!community.status && 'disabled'}}") {{community.displayName}}
.community__description
span(ng-if="communityKey == 'ios'") Mobile app design and development for iOS, with Swift emphasis
span(ng-if="communityKey == 'predix'") Design and development on GE’s platform for the Industrial Internet of Things
+ span(ng-if="communityKey == 'ibm_cognitive'") IBM Cognitive Community
onoff-switch(model="community.status", unique-id="'community-' + communityKey")
diff --git a/app/topcoder.constants.js b/app/topcoder.constants.js
index 36acca7d4..708842a25 100644
--- a/app/topcoder.constants.js
+++ b/app/topcoder.constants.js
@@ -29,6 +29,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
'NEW_CHALLENGES_URL' : 'https://www.topcoder.com/challenges/develop/upcoming/',
'SWIFT_PROGRAM_ID' : 3445,
'PREDIX_PROGRAM_ID' : process.env.PREDIX_PROGRAM_ID || 3448,
+ 'IBM_COGNITIVE_PROGRAM_ID' : process.env.IBM_COGNITIVE_PROGRAM_ID || 3449,
'UPCOMING_SRMS_URL' : 'https://www.topcoder.com/challenges/data/upcoming/',
'EVENT_USER_LOGGED_IN' : 'user_logged_in',
'EVENT_USER_LOGGED_OUT' : 'user_logged_out',
diff --git a/assets/images/ico-ibm_cognitive-community-grey.svg b/assets/images/ico-ibm_cognitive-community-grey.svg
new file mode 100755
index 000000000..7dfad082d
--- /dev/null
+++ b/assets/images/ico-ibm_cognitive-community-grey.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/assets/images/ico-ibm_cognitive-community.svg b/assets/images/ico-ibm_cognitive-community.svg
new file mode 100755
index 000000000..3fa0795ca
--- /dev/null
+++ b/assets/images/ico-ibm_cognitive-community.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file