Added OSTraining and Breakout Mentors resources.

This commit is contained in:
Nick Winter 2015-04-07 09:25:42 -07:00
parent 8673cca96c
commit 7f41ad6c52
2 changed files with 10 additions and 1 deletions
app/templates/play/menu
server/routes

View file

@ -14,6 +14,14 @@ if docs.length === 1
hr
h3 Want more programming lessons?
ul
li
strong
a(class="resource-link", data-resource="breakout-mentors", href='http://breakoutmentors.com/?referral=codecombat') Breakout Mentors
| : Personalized code mentoring for kids from Stanford and UC Berkeley mentors, online or in person.
li
strong
a(class="resource-link", data-resource="ostraining", href='https://www.ostraining.com/codecombat/') OSTraining
| : Watch over 2600 videos on how to make great websites with Wordpress, Drupal, Joomla, and more.
li
strong
a(class="resource-link", data-resource="one-month", href='http://mbsy.co/bVRtZ') One Month

View file

@ -727,8 +727,9 @@ sendNextStepsEmail = (user, now, daysAgo) ->
'maker-square': isAdult and isFast
'the-firehose-project': isAdult and isFast
#'mv-code-club': isKid # TODO: geodetect, get landing page URL
'breakout-mentors': isKid
nAdditionalOffers = Math.max 0, 4 - _.filter(offers).length
possibleAdditionalOffers = ['code-school', 'one-month', 'learnable', 'pluralsight']
possibleAdditionalOffers = ['ostraining', 'code-school', 'one-month', 'learnable', 'pluralsight']
for offer in _.sample possibleAdditionalOffers, nAdditionalOffers
offers[offer] = true
if user.isPremium()