mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Add i18n for Resource Hub
This commit is contained in:
parent
611368f742
commit
2b586420f3
4 changed files with 35 additions and 29 deletions
|
@ -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"
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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 <strong>Python</strong> 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 <strong>JavaScript</strong> 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")
|
||||
|
|
|
@ -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('<!doctype html>') is -1
|
||||
@content = marked(data, sanitize: false)
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue