codecombat/app/templates/account/profile.jade

73 lines
2.3 KiB
Text
Raw Normal View History

2014-01-03 13:32:13 -05:00
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
2014-01-27 14:45:24 -05:00
.container
div.row
div.col-xs-3
2014-01-27 22:03:22 -05:00
img(src=photoURL).img-thumbnail
2014-01-27 14:45:24 -05:00
p.about-me #{grav.aboutMe}
if grav.emails
div.col-xs-3
h3(data-i18n="account_profile.gravatar_contact") Contact
ul
each email in grav.emails
li #{email.value}
if grav.urls && grav.urls.length
div.col-xs-3
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.col-xs-3
h3(data-i18n="account_profile.gravatar_accounts") As Seen On
ul
each account in grav.accounts
li
a(href="#{account.url}") #{account.domain}
2014-01-03 13:32:13 -05:00
hr
p
a(href="#{grav.profileUrl}", data-i18n="account_profile.gravatar_profile_link") Full Gravatar Profile