mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Merge pull request #2831 from trotod/fix-achievement-dates
Show correct achievement earned dates on user page - fixes #2524
This commit is contained in:
commit
8df49b036b
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ block append content
|
|||
tr
|
||||
td
|
||||
a(href="/clans/#{clan.id}")= clan.get('name')
|
||||
td
|
||||
td
|
||||
if idNameMap && idNameMap[clan.get('ownerID')]
|
||||
a(href="/user/#{clan.get('ownerID')}")= idNameMap[clan.get('ownerID')]
|
||||
else
|
||||
|
@ -160,7 +160,7 @@ block append content
|
|||
each achievement, index in earnedAchievements.models
|
||||
tr(class=index > 4 ? 'hide' : '')
|
||||
td= achievement.get('achievementName')
|
||||
td= moment().format("MMMM Do YYYY", achievement.get('changed'))
|
||||
td= moment(achievement.get('changed')).format("MMMM Do YYYY")
|
||||
if achievement.get('achievedAmount')
|
||||
td= achievement.get('achievedAmount')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue