Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a1c4fdb

Browse files
author
vikasrohit
committed
Merge pull request #790 from appirio-tech/feature/mailchimp
Feature/mailchimp
2 parents 6a5148a + c44091a commit a1c4fdb

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

app/services/mailchimp.service.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ import angular from 'angular'
4848
interests: {}
4949
}
5050
if (!preferences) {
51-
subscription.interests[CONSTANTS.MAILCHIMP_NL_TCO] = true
52-
subscription.interests[CONSTANTS.MAILCHIMP_NL_IOS] = true
53-
subscription.interests[CONSTANTS.MAILCHIMP_NL_DEV] = true
54-
subscription.interests[CONSTANTS.MAILCHIMP_NL_DESIGN] = true
55-
subscription.interests[CONSTANTS.MAILCHIMP_NL_DATA] = true
51+
subscription.interests[CONSTANTS.MAILCHIMP_NL_GEN] = true
5652
} else {
5753
subscription.interests = preferences
5854
}

app/settings/email/email.controller.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import angular from 'angular'
1919
function activate() {
2020
vm.newsletters = [
2121
{
22-
id: CONSTANTS.MAILCHIMP_NL_DEV,
23-
name: 'Developer Newsletter',
24-
desc: 'Software architecture, component assembly, application development and bug hunting',
22+
id: CONSTANTS.MAILCHIMP_NL_GEN,
23+
name: 'General Newsletter',
24+
desc: 'News summary from all tracks and programs',
2525
enabled: false,
2626
dirty: false
2727
},
@@ -32,6 +32,13 @@ import angular from 'angular'
3232
enabled: false,
3333
dirty: false
3434
},
35+
{
36+
id: CONSTANTS.MAILCHIMP_NL_DEV,
37+
name: 'Developer Newsletter',
38+
desc: 'Software architecture, component assembly, application development, and bug hunting',
39+
enabled: false,
40+
dirty: false
41+
},
3542
{
3643
id: CONSTANTS.MAILCHIMP_NL_DATA,
3744
name: 'Data Science Newsletter',
@@ -40,16 +47,16 @@ import angular from 'angular'
4047
dirty: false
4148
},
4249
{
43-
id: CONSTANTS.MAILCHIMP_NL_TCO,
44-
name: 'TCO Newsletter',
45-
desc: 'Software architecture, component assembly, application development and bug hunting',
50+
id: CONSTANTS.MAILCHIMP_NL_IOS,
51+
name: 'iOS Community Newsletter',
52+
desc: 'Mobile app design and development for iOS, with Swift emphasis',
4653
enabled: false,
4754
dirty: false
4855
},
4956
{
50-
id: CONSTANTS.MAILCHIMP_NL_IOS,
51-
name: 'iOS Community Newsletter',
52-
desc: 'Software architecture, component assembly, application development and bug hunting',
57+
id: CONSTANTS.MAILCHIMP_NL_TCO,
58+
name: 'TCO Newsletter',
59+
desc: 'Our annual online and onsite tournament to celebrate and reward the community',
5360
enabled: false,
5461
dirty: false
5562
}

app/settings/email/email.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.email-preferences-container
22
.settings-section.newsletters
33
.section-info
4-
h2 Always be up to date
5-
.description Select the email notifications that you'd like to receive. We send them once every week, so you can be up to date with latest news, events and callenges.
4+
h2 Email Preferences
5+
.description Choose the community newsletters that you would like to receive. They are sent about once a week and have the latest news on challenges, events, and special programs.
66

77
.section-fields
88
.processing(ng-show="vm.loading")

app/topcoder.constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
2222
'TCO16_URL' : process.env.TCO16_URL,
2323
'MAILCHIMP_LIST_ID' : process.env.MAILCHIMP_LIST_ID,
2424
'MAILCHIMP_NL_CATEGORY_ID': process.env.MAILCHIMP_NL_CATEGORY_ID,
25+
'MAILCHIMP_NL_GEN' : process.env.MAILCHIMP_NL_GEN,
2526
'MAILCHIMP_NL_TCO' : process.env.MAILCHIMP_NL_TCO,
2627
'MAILCHIMP_NL_IOS' : process.env.MAILCHIMP_NL_IOS,
2728
'MAILCHIMP_NL_DEV' : process.env.MAILCHIMP_NL_DEV,

assets/css/settings/email.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
font-size: 16px;
5858
line-height: 28px;
5959
@include sofia-pro-medium;
60-
text-transform: uppercase;
6160
transition: .1s color;
6261
&.disabled {
6362
color: #b7b7b7;

0 commit comments

Comments
 (0)