mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 00:58:00 -05:00
72 lines
2.2 KiB
Text
72 lines
2.2 KiB
Text
|
extends /templates/base
|
||
|
|
||
|
block content
|
||
|
|
||
|
if myProfile
|
||
|
a(href="/account/settings")
|
||
|
button.btn
|
||
|
i.icon-cog
|
||
|
span(data-i18n="account_profile.edit_settings") Edit Settings
|
||
|
|
||
|
h2
|
||
|
if grav && grav.name && grav.name.formatted
|
||
|
span(data-i18n="account_profile.profile_for_prefix") Profile for
|
||
|
span= grav.name.formatted
|
||
|
span(data-i18n="account_profile.profile_for_suffix")
|
||
|
else
|
||
|
span(data-i18n="account_profile.profile") Profile
|
||
|
|
||
|
if loading
|
||
|
p(data-i18n="common.loading") Loading...
|
||
|
|
||
|
else if !user.get('emailHash')
|
||
|
p(data-i18n="account_profile.user_not_found") No user found. Check the URL?
|
||
|
|
||
|
else if !user.gravatarProfile
|
||
|
if myProfile
|
||
|
p
|
||
|
span(data-i18n="account_profile.gravatar_not_found_mine") We couldn't find your profile associated with:
|
||
|
strong "#{me.get('email')}"
|
||
|
span(data-i18n="account_profile.gravatar_not_found_email_suffix") .
|
||
|
span
|
||
|
span(data-i18n="account_profile.gravatar_signup_prefix") Sign up at
|
||
|
a(href="http://en.gravatar.com/") Gravatar
|
||
|
span(data-i18n="account_profile.gravatar_signup_suffix") to get set up!
|
||
|
else
|
||
|
p(data-i18n="account_profile.gravatar_not_found_other")
|
||
|
| Alas, there's no profile associated with this person's email address.
|
||
|
|
||
|
else
|
||
|
div.row
|
||
|
div.span2
|
||
|
img(src=photoURL).img-polaroid
|
||
|
|
||
|
p.about-me #{grav.aboutMe}
|
||
|
|
||
|
if grav.emails
|
||
|
div.span2
|
||
|
h3(data-i18n="account_profile.gravatar_contact") Contact
|
||
|
ul
|
||
|
each email in grav.emails
|
||
|
li #{email.value}
|
||
|
|
||
|
if grav.urls && grav.urls.length
|
||
|
div.span2
|
||
|
h3(data-i18n="account_profile.gravatar_websites") Websites
|
||
|
ul
|
||
|
each url in grav.urls
|
||
|
li
|
||
|
a(href="#{url.value}") #{url.title}
|
||
|
|
||
|
if grav.accounts
|
||
|
div.span2
|
||
|
h3(data-i18n="account_profile.gravatar_accounts") As Seen On
|
||
|
ul
|
||
|
each account in grav.accounts
|
||
|
li
|
||
|
a(href="#{account.url}") #{account.domain}
|
||
|
|
||
|
hr
|
||
|
p
|
||
|
a(href="#{grav.profileUrl}", data-i18n="account_profile.gravatar_profile_link") Full Gravatar Profile
|