2014-11-29 14:39:37 -05:00
|
|
|
extends /templates/core/modal-base
|
2014-03-03 12:03:44 -05:00
|
|
|
|
|
|
|
block modal-header-content
|
2014-03-12 16:23:25 -04:00
|
|
|
h3(data-i18n="ladder.choose_opponent") Choose an Opponent
|
2014-03-03 12:03:44 -05:00
|
|
|
|
|
|
|
block modal-body-content
|
|
|
|
|
2015-11-24 16:52:37 -05:00
|
|
|
if view.level.get('type') != 'course-ladder'
|
|
|
|
h4.language-selection(data-i18n="ladder.select_your_language") Select your language!
|
|
|
|
.form-group.select-group
|
|
|
|
select#tome-language(name="language")
|
|
|
|
for option in languages
|
|
|
|
option(value=option.id selected=(language === option.id))= option.name
|
2014-08-26 20:34:00 -04:00
|
|
|
|
2014-03-07 15:58:17 -05:00
|
|
|
div#noob-view.secret
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}-tutorial" + (league ? "?league=" + league.id : "")).btn.btn-success.btn-block.btn-lg
|
2014-03-07 15:58:17 -05:00
|
|
|
p
|
2014-03-12 16:23:25 -04:00
|
|
|
strong(data-i18n="ladder.tutorial_play") Play Tutorial
|
|
|
|
span(data-i18n="ladder.tutorial_recommended") Recommended if you've never played before
|
|
|
|
span.btn.btn-primary.btn-block.btn-lg#skip-tutorial-button(data-i18n="ladder.tutorial_skip") Skip Tutorial
|
2014-03-03 12:03:44 -05:00
|
|
|
|
2014-03-07 15:58:17 -05:00
|
|
|
div#normal-view
|
2014-04-28 13:54:03 -04:00
|
|
|
if tutorialLevelExists
|
|
|
|
p.tutorial-suggestion
|
|
|
|
strong(data-i18n="ladder.tutorial_not_sure") Not sure what's going on?
|
|
|
|
|
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}-tutorial" + (league ? "?league=" + league.id : ""), data-i18n="ladder.tutorial_play_first") Play the tutorial first.
|
|
|
|
a(href="/play/level/#{levelID}?team=#{teamID}" + (league ? "&league=" + league.id : ""))
|
2014-03-07 15:58:17 -05:00
|
|
|
div.play-option
|
2014-03-03 15:04:31 -05:00
|
|
|
img(src=myPortrait).my-icon.only-one
|
2014-03-07 15:58:17 -05:00
|
|
|
img(src="/images/pages/play/ladder/"+teamID+"_ladder_tutorial.png", style="border: 1px solid #{teamColor}; background: #{teamBackgroundColor}").my-team-icon.img-circle.only-one
|
|
|
|
img(src=genericPortrait).opponent-icon
|
|
|
|
img(src="/images/pages/play/ladder/"+otherTeamID+"_ladder_tutorial.png", style="border: 1px solid #{opponentTeamColor}; background: #{opponentTeamBackgroundColor}").opponent-team-icon.img-circle
|
2014-03-03 15:04:31 -05:00
|
|
|
div.my-name.name-label.only-one
|
2014-03-03 12:03:44 -05:00
|
|
|
span= myName
|
|
|
|
div.opponent-name.name-label
|
2014-03-12 16:23:25 -04:00
|
|
|
span(data-i18n="ladder.simple_ai") Simple AI
|
2014-07-17 23:12:59 -04:00
|
|
|
//span.code-language(style="background-image: url(/images/common/code_languages/javascript_small.png)")
|
2014-03-03 12:03:44 -05:00
|
|
|
div.difficulty
|
2014-03-12 16:23:25 -04:00
|
|
|
span(data-i18n="ladder.warmup") Warmup
|
2014-03-07 15:58:17 -05:00
|
|
|
|
|
|
|
if challengers.easy
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.easy.sessionID}" + (league ? "&league=" + league.id : ""))
|
2014-03-07 15:58:17 -05:00
|
|
|
div.play-option.easy-option
|
|
|
|
img(src=myPortrait).my-icon.only-one
|
|
|
|
img(src="/images/pages/play/ladder/"+teamID+"_ladder_easy.png", style="border: 1px solid #{teamColor}; background: #{teamBackgroundColor}").my-team-icon.img-circle.only-one
|
|
|
|
img(src=challengers.easy.opponentImageSource||genericPortrait).opponent-icon
|
|
|
|
img(src="/images/pages/play/ladder/"+otherTeamID+"_ladder_easy.png", style="border: 1px solid #{opponentTeamColor}; background: #{opponentTeamBackgroundColor}").opponent-team-icon.img-circle
|
|
|
|
div.my-name.name-label.only-one
|
|
|
|
span= myName
|
|
|
|
div.opponent-name.name-label
|
|
|
|
span= challengers.easy.opponentName
|
2014-07-13 23:19:51 -04:00
|
|
|
if challengers.easy.codeLanguage
|
2014-07-17 23:12:59 -04:00
|
|
|
span.code-language(style="background-image: url(/images/common/code_languages/" + challengers.easy.codeLanguage + "_small.png)")
|
2014-03-07 15:58:17 -05:00
|
|
|
div.difficulty
|
2014-03-12 16:23:25 -04:00
|
|
|
span(data-i18n="general.easy") Easy
|
2014-03-07 15:58:17 -05:00
|
|
|
|
|
|
|
if challengers.medium
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.medium.sessionID}" + (league ? "&league=" + league.id : ""))
|
2014-03-07 15:58:17 -05:00
|
|
|
div.play-option.medium-option
|
|
|
|
img(src=myPortrait).my-icon.only-one
|
|
|
|
img(src="/images/pages/play/ladder/"+teamID+"_ladder_medium.png", style="border: 1px solid #{teamColor}; background: #{teamBackgroundColor}").my-team-icon.img-circle.only-one
|
|
|
|
img(src=challengers.medium.opponentImageSource||genericPortrait).opponent-icon
|
|
|
|
img(src="/images/pages/play/ladder/"+otherTeamID+"_ladder_medium.png", style="border: 1px solid #{opponentTeamColor}; background: #{opponentTeamBackgroundColor}").opponent-team-icon.img-circle
|
|
|
|
div.my-name.name-label.only-one
|
|
|
|
span= myName
|
|
|
|
div.opponent-name.name-label
|
|
|
|
span= challengers.medium.opponentName
|
2014-07-13 23:19:51 -04:00
|
|
|
if challengers.medium.codeLanguage
|
2014-07-17 23:12:59 -04:00
|
|
|
span.code-language(style="background-image: url(/images/common/code_languages/" + challengers.medium.codeLanguage + "_small.png)")
|
2014-03-07 15:58:17 -05:00
|
|
|
div.difficulty
|
2014-03-12 16:23:25 -04:00
|
|
|
span(data-i18n="general.medium") Medium
|
2014-03-07 15:58:17 -05:00
|
|
|
|
|
|
|
if challengers.hard
|
2015-09-04 19:21:35 -04:00
|
|
|
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.hard.sessionID}" + (league ? "&league=" + league.id : ""))
|
2014-03-07 15:58:17 -05:00
|
|
|
div.play-option.hard-option
|
|
|
|
img(src=myPortrait).my-icon.only-one
|
|
|
|
img(src="/images/pages/play/ladder/"+teamID+"_ladder_hard.png", style="border: 1px solid #{teamColor}; background: #{teamBackgroundColor}").my-team-icon.img-circle.only-one
|
|
|
|
img(src=challengers.hard.opponentImageSource||genericPortrait).opponent-icon
|
|
|
|
img(src="/images/pages/play/ladder/"+otherTeamID+"_ladder_hard.png", style="border: 1px solid #{opponentTeamColor}; background: #{opponentTeamBackgroundColor}").opponent-team-icon.img-circle
|
|
|
|
div.my-name.name-label.only-one
|
|
|
|
span= myName
|
|
|
|
div.opponent-name.name-label
|
|
|
|
span= challengers.hard.opponentName
|
2014-07-13 23:19:51 -04:00
|
|
|
if challengers.hard.codeLanguage
|
2014-07-17 23:12:59 -04:00
|
|
|
span.code-language(style="background-image: url(/images/common/code_languages/" + challengers.hard.codeLanguage + "_small.png)")
|
2014-03-07 15:58:17 -05:00
|
|
|
div.difficulty
|
2014-03-12 16:23:25 -04:00
|
|
|
span(data-i18n="general.hard") Hard
|
2014-03-03 12:03:44 -05:00
|
|
|
|
|
|
|
block modal-footer
|