2014-01-03 13:32:13 -05:00
|
|
|
// TODO: refactor to be like other modals
|
2014-01-27 19:59:34 -05:00
|
|
|
.modal-dialog
|
|
|
|
.modal-header
|
|
|
|
button(type='button', data-dismiss="modal", aria-hidden="true").close ×
|
|
|
|
h3(data-i18n="play_level.multiplayer_title") Multiplayer Settings
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:59:34 -05:00
|
|
|
.modal-body
|
2014-01-27 21:44:05 -05:00
|
|
|
.form
|
2014-01-27 19:59:34 -05:00
|
|
|
.form-group.checkbox
|
2014-01-27 21:50:03 -05:00
|
|
|
label(for="multiplayer")
|
2014-01-27 19:59:34 -05:00
|
|
|
input#multiplayer(name="multiplayer", type="checkbox", checked=multiplayer)
|
|
|
|
| Multiplayer
|
|
|
|
span.help-block Enable others to join your game.
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
div#link-area
|
|
|
|
p(data-i18n="play_level.multiplayer_link_description") Give this link to anyone to have them join you.
|
|
|
|
|
|
|
|
textarea.well#multiplayer-join-link(readonly=true)= joinLink
|
|
|
|
|
|
|
|
p
|
|
|
|
strong(data-i18n="play_level.multiplayer_hint_label") Hint:
|
|
|
|
span(data-i18n="play_level.multiplayer_hint") Click the link to select all, then press ⌘-C or Ctrl-C to copy the link.
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-01-27 19:59:34 -05:00
|
|
|
p(data-i18n="play_level.multiplayer_coming_soon") More multiplayer features to come!
|
2014-02-06 20:31:08 -05:00
|
|
|
|
|
|
|
if playableTeams.length > 1
|
|
|
|
#multiplayer-team-selection
|
|
|
|
for team in playableTeams
|
2014-02-07 13:51:21 -05:00
|
|
|
h4
|
|
|
|
if team == me.team
|
|
|
|
em= "Playing as " + team
|
|
|
|
else
|
|
|
|
a(href=joinLink + "&skip_protect_api=true&team=" + team)= "Play as " + team
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-02-13 13:16:27 -05:00
|
|
|
if ladderGame
|
|
|
|
#submit-session-button.btn.btn-primary Update Ladder Score
|
|
|
|
|
2014-01-27 19:59:34 -05:00
|
|
|
.modal-footer
|
|
|
|
a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close
|