diff --git a/app/locale/en.coffee b/app/locale/en.coffee index edb3c4344..f05c6568e 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -888,6 +888,7 @@ more_info_3: "is a good place to connect with fellow educators who are using CodeCombat." licenses_needed: "Licenses needed" + teachers_quote: name: "Demo Form" title: "Request a Demo" @@ -1508,6 +1509,18 @@ project: "Project" view_student_project: "View Student Project" view_arena_ladder: "View Arena Ladder" + resource_hub: "Resource Hub" + getting_started: "Getting Started" + teacher_getting_started: "Teacher Getting Started Guide" + teacher_getting_started_desc: "New to CodeCombat? Download this Teacher Getting Started Guide to set up your account, create your first class, and invite students to the first course." + student_getting_started: "Student Quick Start Guide" + student_getting_started_desc: "You can distribute this guide to your students before starting CodeCombat so that they can familiarize themselves with the code editor. This guide can be used for both Python and JavaScript classrooms." + cs1: "Introduction to Computer Science" + cs1_syntax_python: "Course 1 Python Syntax Guide" + cs1_syntax_python_desc: "Cheatsheet with references to common Python syntax that students will learn in Introduction to Computer Science." + cs1_syntax_javascript: "Course 1 JavaScript Syntax Guide" + cs1_syntax_javascript_desc: "Cheatsheet with references to common JavaScript syntax that students will learn in Introduction to Computer Science." + coming_soon: "Additional guides coming soon!" sharing: game: "Game" diff --git a/app/templates/courses/teacher-dashboard-nav.jade b/app/templates/courses/teacher-dashboard-nav.jade index 21118822a..ebc898532 100644 --- a/app/templates/courses/teacher-dashboard-nav.jade +++ b/app/templates/courses/teacher-dashboard-nav.jade @@ -23,7 +23,7 @@ small.label(data-i18n='teacher.enrollments') li(class= path.indexOf('/teachers/resources') === 0 ? 'active' : '') a(href='/teachers/resources') - small.label Resource Hub + small.label(data-i18n='teacher.resource_hub') //- li(class= path.indexOf('TODO') === 0 ? 'active' : '') //- a(href='TODO') //- small.label(data-i18n='teacher.resources') diff --git a/app/templates/teachers/resource-hub-view.jade b/app/templates/teachers/resource-hub-view.jade index fc7808f59..ad5c599fa 100644 --- a/app/templates/teachers/resource-hub-view.jade +++ b/app/templates/teachers/resource-hub-view.jade @@ -8,42 +8,36 @@ block content .container .content - h1 Resource Hub + h1(data-i18n="teacher.resource_hub") - h4 Getting Started + h4(data-i18n="teacher.getting_started") ul li - a(href="http://files.codecombat.com/docs/resources/StudentQuickStartGuide.pdf" target="blank") Teacher Getting Started Guide [PDF] - p New to CodeCombat? Download this Teacher Getting Started Guide to set up your account, create your first class, and invite students to the first course. + a(href="http://files.codecombat.com/docs/resources/TeacherGettingStartedGuide.pdf" target="blank") + span(data-i18n="teacher.teacher_getting_started") + span.spl [PDF] + p(data-i18n="teacher.teacher_getting_started_desc") li - a(href="http://files.codecombat.com/docs/resources/StudentQuickStartGuide.pdf" target="blank") Student Quick Start Guide [PDF] - p You can distribute this guide to your students before starting CodeCombat so that they can familiarize themselves with the code editor. This guide can be used for both Python and JavaScript classrooms. + a(href="http://files.codecombat.com/docs/resources/StudentQuickStartGuide.pdf" target="blank") + span(data-i18n="teacher.student_getting_started") + span.spl [PDF] + p(data-i18n="teacher.student_getting_started_desc") - // - li - a(href="http://example.com") Teacher Debugging Guide (3 types of problems) - - h4 Introduction to Computer Science + h4(data-i18n="teacher.cs1") ul li - a(href="http://files.codecombat.com/docs/resources/Course1PythonSyntaxGuide.pdf" target="blank") Course 1 Python Syntax Guide [PDF] - p Cheatsheet with references to common Python syntax that students will learn in Introduction to Computer Science. + a(href="http://files.codecombat.com/docs/resources/Course1PythonSyntaxGuide.pdf" target="blank") + span(data-i18n="teacher.cs1_syntax_python") + span.spl [PDF] + p(data-i18n="teacher.cs1_syntax_python_desc") li - a(href="http://files.codecombat.com/docs/resources/Course1JavaScriptSyntaxGuide.pdf" target="blank") Course 1 JavaScript Syntax Guide [PDF] - p Cheatsheet with references to common JavaScript syntax that students will learn in Introduction to Computer Science. + a(href="http://files.codecombat.com/docs/resources/Course1JavaScriptSyntaxGuide.pdf" target="blank") + span(data-i18n="teacher.cs1_syntax_javascript") + span.spl [PDF] + p(data-i18n="teacher.cs1_syntax_javascript_desc") - // - h4 Computer Science 2 - ul - li - a(href="http://example.com") Course 2 Lesson Plans - li - a(href="http://example.com") Course 2 Python Syntax Guide [PDF] - li - a(href="http://example.com") Course 2 JavaScript Syntax Guide [PDF] - - h4 + h4 .comingsoon - i Additional guides coming soon! + i(data-i18n="teacher.coming_soon") diff --git a/app/views/teachers/MarkdownResourceView.coffee b/app/views/teachers/MarkdownResourceView.coffee index 8a46fd04d..21f12b974 100644 --- a/app/views/teachers/MarkdownResourceView.coffee +++ b/app/views/teachers/MarkdownResourceView.coffee @@ -7,7 +7,6 @@ module.exports = class MarkdownResourceView extends RootView super(options) @content = '' $.get '/markdown/' + @name + '.md', (data) => - console.log typeof data, data if data.indexOf('') is -1 @content = marked(data, sanitize: false) else