Skip to content

Commit

Permalink
Merge pull request #7014 from code-dot-org/congrats-app-lab
Browse files Browse the repository at this point in the history
add app lab as recommendation on course 4 congrats page
  • Loading branch information
tanyaparker committed Feb 27, 2016
2 parents 656a9a6 + f5a3e7a commit 18dd8f7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pegasus/cache/i18n/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
get_a_certificate_of_achievement: "Get a certificate of achievement"
view_course: "View course"
view_unit: "View unit"
make_app: "Make an app"
congrats_guest_speaker_title: "Find a guest speaker for your classroom"
congrats_guest_speaker_desc: "Now that your students have finished a computer science course, consider celebrating and connecting it to things they can build in the real world by inviting a guest speaker to your classroom. You can use our map of volunteers to contact local volunteers to visit your classroom, or search in any city to find computer science students or technical professionals who are ready to inspire your students remotely, via video chat."
congrats_guest_speaker_cta: "Find a guest speaker"
Expand Down Expand Up @@ -740,6 +741,9 @@
cspunit3_name: "CS Principles Unit 3"
cspunit3_gradelevel: "Grades 9-12"
cspunit3_shortdescription_congrats: "This unit introduces the foundational concepts of computer programming, which unlocks the ability to make rich, interactive apps. This course uses JavaScript as the programming language, and App Lab as the programming environment to build apps, but the concepts learned in these lessons span all programming languages and tools."
applab_name: "App Lab"
applab_gradelevel: "Ages 13+"
applab_shortdescription_congrats: "App Lab is a programming environment to make simple apps that live on the web. It's easy: simply drag and drop to design your app, write code for your app with JavaScript blocks or with text, then share your app with friends in seconds."
codeorg_gradelevel: "Ages 4-104"
codeintl_gradelevel: "Ages 4-104"
thinkersmithspanish_gradelevel: "Por todos"
Expand Down
9 changes: 7 additions & 2 deletions pegasus/sites.v3/code.org/views/course_block.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
- url = CDO.studio_url("/s/#{id}")
- if id == "applab"
- url = CDO.code_org_url("/educate/#{id}")
- cta = I18n.t(:make_app)
- else
- url = CDO.studio_url("/s/#{id}")
- cta = I18n.t(:view_course)
- title = I18n.t("#{id}_name")
- body = I18n.t("#{id}_shortdescription_congrats")
- img_src = CDO.code_org_url("/shared/images/courses/fit-200/logo_#{id}.jpg")
Expand All @@ -10,5 +15,5 @@
%h3= title
%h4= I18n.t("#{id}_gradelevel")
.smalltext= body
%button{style: "margin-left: 10px; margin-top: 10px;"}= I18n.t(:view_course)
%button{style: "margin-left: 10px; margin-top: 10px;"}= cta
.clear
2 changes: 1 addition & 1 deletion pegasus/sites.v3/code.org/views/csf_congrats.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- facebook = {:u=>share_url}
- twitter = {:url=>share_url, :related=>'codeorg', :hashtags=>'CSforAll', :text=>I18n.t(:"just_did_#{course}")}

- rec_code_studio = {"course1" => "course2", "course2" => "course3", "course3" => "course4", "accelerated" => "course4"}
- rec_code_studio = {"course1" => "course2", "course2" => "course3", "course3" => "course4", "accelerated" => "course4", "course4" => "applab"}
- rec_third_party = {"course1" => "course1_next", "course2" => "course2_next", "course3" => "course3_next", "course4" => "course4_next", "accelerated" => "accelerated_next"}

#congrats.mobile-pad{:style=>'margin: 0 auto;'}
Expand Down
Binary file added shared/images/courses/logo_applab.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 18dd8f7

Please sign in to comment.