mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 21:01:06 -05:00
99a148a136
Closes #3901
13 lines
626 B
CoffeeScript
13 lines
626 B
CoffeeScript
module.exports =
|
|
playDevLevel: ({level, session, course}) ->
|
|
shareURL = "#{window.location.origin}/play/#{level.get('type')}-level/#{level.get('slug')}/#{session.id}"
|
|
shareURL += "?course=#{course.id}" if course
|
|
return shareURL
|
|
|
|
courseArenaLadder: ({level, courseInstance}) ->
|
|
"/play/ladder/#{level.get('slug')}/course/#{courseInstance.id}"
|
|
|
|
courseLevel: ({level, courseInstance}) ->
|
|
url = "/play/level/#{level.get('slug')}?course=#{courseInstance.get('courseID')}&course-instance=#{courseInstance.id}"
|
|
url += "&codeLanguage=#{level.get('primerLanguage')}" if level.get('primerLanguage')
|
|
url
|