mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Updated i18n (part 2)
This commit is contained in:
parent
e88aff1339
commit
bfd18471a5
1 changed files with 41 additions and 22 deletions
|
@ -9,7 +9,7 @@ block content
|
||||||
span ×
|
span ×
|
||||||
h3.modal-title(data-i18n="clans.edit_clan_name") Edit Clan Name
|
h3.modal-title(data-i18n="clans.edit_clan_name") Edit Clan Name
|
||||||
.modal-body
|
.modal-body
|
||||||
input.edit-name-input(type='text' value="#{clan.get('name')}")
|
input.edit-name-input(type='text', value="#{clan.get('name')}")
|
||||||
.modal-footer
|
.modal-footer
|
||||||
button.btn(data-dismiss='modal', data-i18n="modal.close") Close
|
button.btn(data-dismiss='modal', data-i18n="modal.close") Close
|
||||||
button.btn.edit-name-save-btn(data-i18n="common.save_changes") Save changes
|
button.btn.edit-name-save-btn(data-i18n="common.save_changes") Save changes
|
||||||
|
@ -74,7 +74,9 @@ block content
|
||||||
.small(data-i18n="clans.invite_2") *Invite players to this Clan by sending them this link.
|
.small(data-i18n="clans.invite_2") *Invite players to this Clan by sending them this link.
|
||||||
|
|
||||||
if members
|
if members
|
||||||
h3 Members (#{members.length})
|
h3
|
||||||
|
span.spr(data-i18n="clans.members") Members
|
||||||
|
span (#{members.length})
|
||||||
|
|
||||||
//- Premium dashboard
|
//- Premium dashboard
|
||||||
if clan.get('dashboardType') === 'premium'
|
if clan.get('dashboardType') === 'premium'
|
||||||
|
@ -83,12 +85,12 @@ block content
|
||||||
tr
|
tr
|
||||||
th(data-i18n="resources.hero") Hero
|
th(data-i18n="resources.hero") Hero
|
||||||
th
|
th
|
||||||
span.progress-header Progress
|
span.progress-header(data-i18n="clans.progress") Progress
|
||||||
span.progress-key not started
|
span.progress-key(data-i18n="clans.not_started") not started
|
||||||
span.progress-key.progress-key-started started
|
span.progress-key.progress-key-started(data-i18n="clans.started") started
|
||||||
span.progress-key.progress-key-complete complete
|
span.progress-key.progress-key-complete(data-i18n="clans.complete") complete
|
||||||
input.expand-progress-checkbox(type='checkbox')
|
input.expand-progress-checkbox(type='checkbox')
|
||||||
span.spl.expand-progress-label Expand levels
|
span.spl.expand-progress-label(data-i18n="clans.exp_levels") Expand levels
|
||||||
tbody
|
tbody
|
||||||
each member in members
|
each member in members
|
||||||
tr
|
tr
|
||||||
|
@ -103,7 +105,7 @@ block content
|
||||||
a(href="/user/#{member.id}")= member.get('name') || 'Anoner'
|
a(href="/user/#{member.id}")= member.get('name') || 'Anoner'
|
||||||
div Level #{member.level()}
|
div Level #{member.level()}
|
||||||
if isOwner && member.id !== clan.get('ownerID')
|
if isOwner && member.id !== clan.get('ownerID')
|
||||||
button.btn.btn-xs.btn-warning.remove-member-btn(data-id="#{member.id}") Remove Hero
|
button.btn.btn-xs.btn-warning.remove-member-btn(data-id="#{member.id}", data-i18n="clans.rem_hero") Remove Hero
|
||||||
td.progress-cell
|
td.progress-cell
|
||||||
|
|
||||||
each campaign in campaignLevelProgressions
|
each campaign in campaignLevelProgressions
|
||||||
|
@ -124,11 +126,18 @@ block content
|
||||||
.level-popup-container
|
.level-popup-container
|
||||||
h3 #{i}. #{levelInfo.level}
|
h3 #{i}. #{levelInfo.level}
|
||||||
p
|
p
|
||||||
div Status: Complete
|
div
|
||||||
div Playtime: #{levelInfo.playtime}s
|
span(data-i18n="choose_hero.status") Status
|
||||||
div Last played: #{levelInfo.changed}
|
span.spr :
|
||||||
|
span(data-i18n="clans.complete") Complete
|
||||||
|
div
|
||||||
|
span(data-i18n="clans.playtime") Playtime
|
||||||
|
span : #{levelInfo.playtime}s
|
||||||
|
div
|
||||||
|
span(data-i18n="clans.last_played") Last played
|
||||||
|
span : #{levelInfo.changed}
|
||||||
if isOwner || me.isAdmin()
|
if isOwner || me.isAdmin()
|
||||||
strong Click to view solution.
|
strong(data-i18n="clans.view_solution") Click to view solution.
|
||||||
else if state === 'started'
|
else if state === 'started'
|
||||||
span.progress-level-cell.progress-level-cell-started(data-level-info=levelInfo) #{i}
|
span.progress-level-cell.progress-level-cell-started(data-level-info=levelInfo) #{i}
|
||||||
if showExpandedProgress || i === 1 || i === lastUserCampaignLevelMap[member.id][campaign.ID].index + 1
|
if showExpandedProgress || i === 1 || i === lastUserCampaignLevelMap[member.id][campaign.ID].index + 1
|
||||||
|
@ -136,18 +145,28 @@ block content
|
||||||
.level-popup-container
|
.level-popup-container
|
||||||
h3 #{i}. #{level.name}
|
h3 #{i}. #{level.name}
|
||||||
p
|
p
|
||||||
div Status: Started
|
div
|
||||||
div Playtime: #{levelInfo.playtime}s
|
span(data-i18n="choose_hero.status") Status
|
||||||
div Last played: #{levelInfo.changed}
|
span.spr :
|
||||||
|
span(data-i18n="clans.started") Started
|
||||||
|
div
|
||||||
|
span(data-i18n="clans.playtime") Playtime
|
||||||
|
span : #{levelInfo.playtime}s
|
||||||
|
div
|
||||||
|
span(data-i18n="clans.last_played") Last played
|
||||||
|
span : #{levelInfo.changed}
|
||||||
if isOwner || me.isAdmin()
|
if isOwner || me.isAdmin()
|
||||||
strong Click to view solution.
|
strong(data-i18n="clans.view_solution") Click to view solution.
|
||||||
else
|
else
|
||||||
span.progress-level-cell.level-progression-level-not-started #{i}
|
span.progress-level-cell.level-progression-level-not-started #{i}
|
||||||
if showExpandedProgress || i === 1 || i === lastUserCampaignLevelMap[member.id][campaign.ID].index + 1
|
if showExpandedProgress || i === 1 || i === lastUserCampaignLevelMap[member.id][campaign.ID].index + 1
|
||||||
span.spl #{level.name}
|
span.spl #{level.name}
|
||||||
.level-popup-container
|
.level-popup-container
|
||||||
h3 #{i}. #{level.name}
|
h3 #{i}. #{level.name}
|
||||||
div Status: Not Started
|
div
|
||||||
|
span(data-i18n="choose_hero.status") Status
|
||||||
|
span.spr :
|
||||||
|
span(data-i18n="clans.not_started") Not Started
|
||||||
if lastUserCampaignLevelMap[member.id][campaign.ID].levelSlug === level.slug
|
if lastUserCampaignLevelMap[member.id][campaign.ID].levelSlug === level.slug
|
||||||
- break
|
- break
|
||||||
|
|
||||||
|
@ -158,10 +177,10 @@ block content
|
||||||
tr
|
tr
|
||||||
th
|
th
|
||||||
th
|
th
|
||||||
td.name-cell Name
|
td.name-cell(data-i18n="clans.name") Name
|
||||||
th.level-cell Level
|
th.level-cell(data-i18n="resources.level") Level
|
||||||
th.achievements-cell Achievements
|
th.achievements-cell(data-i18n="play.achievements") Achievements
|
||||||
th.latest-achievement-cell Latest Achievement
|
th.latest-achievement-cell(data-i18n="clans.latest_achievement") Latest Achievement
|
||||||
th
|
th
|
||||||
tbody
|
tbody
|
||||||
each member in members
|
each member in members
|
||||||
|
@ -182,4 +201,4 @@ block content
|
||||||
span= memberAchievementsMap[member.id][0].get('achievementName')
|
span= memberAchievementsMap[member.id][0].get('achievementName')
|
||||||
td
|
td
|
||||||
if isOwner && member.id !== clan.get('ownerID')
|
if isOwner && member.id !== clan.get('ownerID')
|
||||||
button.btn.btn-xs.btn-warning.remove-member-btn(data-id="#{member.id}") Remove Hero
|
button.btn.btn-xs.btn-warning.remove-member-btn(data-id="#{member.id}", data-i18n="clans.rem_hero") Remove Hero
|
||||||
|
|
Loading…
Reference in a new issue