2014-07-15 10:15:21 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
2014-08-07 16:03:00 -04:00
|
|
|
if !me.isAnonymous()
|
|
|
|
.clearfix
|
|
|
|
.col-sm-6.clearfix
|
2014-08-12 07:41:14 -04:00
|
|
|
h2
|
|
|
|
span(data-i18n="account_settings.title") Account Settings
|
|
|
|
a.spl(href="/account/settings")
|
2014-08-07 16:03:00 -04:00
|
|
|
i.glyphicon.glyphicon-cog
|
|
|
|
hr
|
|
|
|
.row
|
|
|
|
.col-xs-6
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-picture
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#picture" data-i18n="account_settings.picture_tab") Picture
|
2014-08-07 16:03:00 -04:00
|
|
|
.panel-body.text-center
|
2014-08-12 07:41:14 -04:00
|
|
|
img#picture(src="#{me.getPhotoURL(150)}" alt="Picture")
|
2014-08-07 16:03:00 -04:00
|
|
|
.col-xs-6
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-user
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#wizard" data-i18n="account_settings.wizard_tab") Wizard
|
2014-08-07 16:03:00 -04:00
|
|
|
if (wizardSource)
|
|
|
|
.panel-body.text-center
|
|
|
|
img(src="#{wizardSource}")
|
|
|
|
.panel.panel-default.panel-me
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-user
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#me" data-i18n="account_settings.me_tab") Me
|
2014-08-07 16:03:00 -04:00
|
|
|
.panel-body
|
|
|
|
table
|
2014-08-03 17:58:51 -04:00
|
|
|
tr
|
2014-08-12 07:41:14 -04:00
|
|
|
th(data-i18n="general.name") Name
|
|
|
|
td=me.displayName()
|
2014-08-07 16:03:00 -04:00
|
|
|
tr
|
2014-08-12 07:41:14 -04:00
|
|
|
th(data-i18n="general.email") Email
|
2014-08-07 16:03:00 -04:00
|
|
|
td=me.get('email')
|
|
|
|
.panel.panel-default.panel-emails
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-envelope
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#emails" data-i18n="account_settings.emails_tab") Emails
|
2014-07-21 13:06:22 -04:00
|
|
|
.panel-body
|
2014-08-12 07:41:14 -04:00
|
|
|
if !hasEmailNotes && !hasEmailNews && !hasGeneralNews
|
|
|
|
p(data-i18n="account_settings.email_subscriptions_none") No email subscriptions.
|
|
|
|
if hasGeneralNews
|
|
|
|
h4(data-i18n="account_settings.email_news") News
|
|
|
|
ul
|
|
|
|
li(data-i18n="account_settings.email_announcements") Announcements
|
2014-08-07 16:03:00 -04:00
|
|
|
if hasEmailNotes
|
2014-08-12 07:41:14 -04:00
|
|
|
h4(data-i18n="account_settings.email_notifications") Notifications
|
2014-08-07 16:03:00 -04:00
|
|
|
ul
|
|
|
|
if subs.anyNotes
|
|
|
|
li(data-i18n="account_settings.email_any_notes") Any Notifications
|
|
|
|
if subs.recruitNotes
|
|
|
|
li(data-i18n="account_settings.email_recruit_notes") Job Opportunities
|
|
|
|
if hasEmailNews
|
2014-08-12 07:41:14 -04:00
|
|
|
h4(data-i18n="account_settings.contributor_emails") Contributor Emails
|
2014-08-07 16:03:00 -04:00
|
|
|
ul
|
|
|
|
if (subs.archmageNews)
|
|
|
|
li
|
|
|
|
span(data-i18n="classes.archmage_title")
|
|
|
|
| Archmage
|
|
|
|
span(data-i18n="classes.archmage_title_description")
|
|
|
|
| (Coder)
|
|
|
|
if (subs.artisanNews)
|
|
|
|
li
|
|
|
|
span.spr(data-i18n="classes.artisan_title")
|
|
|
|
| Artisan
|
|
|
|
span(data-i18n="classes.artisan_title_description")
|
|
|
|
| (Level Builder)
|
|
|
|
if (subs.adventurerNews)
|
|
|
|
li
|
|
|
|
span.spr(data-i18n="classes.adventurer_title")
|
|
|
|
| Adventurer
|
|
|
|
span(data-i18n="classes.adventurer_title_description")
|
|
|
|
| (Level Playtester)
|
|
|
|
if (subs.scribeNews)
|
|
|
|
li
|
|
|
|
span.spr(data-i18n="classes.scribe_title")
|
|
|
|
| Scribe
|
|
|
|
span(data-i18n="classes.scribe_title_description")
|
|
|
|
| (Article Editor)
|
|
|
|
if (subs.diplomatNews)
|
|
|
|
li
|
|
|
|
span.spr(data-i18n="classes.diplomat_title")
|
|
|
|
| Diplomat
|
|
|
|
span(data-i18n="classes.diplomat_title_description")
|
|
|
|
| (Translator)
|
|
|
|
if (subs.ambassadorNews)
|
|
|
|
li
|
|
|
|
span.spr(data-i18n="classes.ambassador_title")
|
|
|
|
| Ambassador
|
|
|
|
span(data-i18n="classes.ambassador_title_description")
|
|
|
|
| (Support)
|
2014-07-16 06:39:18 -04:00
|
|
|
|
2014-08-07 16:03:00 -04:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-wrench
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#password" data-i18n="general.password") Password
|
2014-08-07 16:03:00 -04:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h3.panel-title
|
|
|
|
i.glyphicon.glyphicon-briefcase
|
2014-08-12 07:41:14 -04:00
|
|
|
a(href="account/settings#job-profile" data-i18n="account_settings.job_profile") Job Profile
|
2014-08-07 16:03:00 -04:00
|
|
|
.col-sm-6
|
2014-08-12 07:41:14 -04:00
|
|
|
h2(data-i18n="user.recently_played") Recently Played
|
2014-08-07 16:03:00 -04:00
|
|
|
hr
|
|
|
|
if !recentlyPlayed
|
2014-08-12 07:41:14 -04:00
|
|
|
div(data-i18n="common.loading") Loading...
|
2014-08-07 16:03:00 -04:00
|
|
|
else if recentlyPlayed.length
|
|
|
|
table.table
|
|
|
|
tr
|
2014-08-12 07:41:14 -04:00
|
|
|
th(data-i18n="resources.level") Level
|
|
|
|
th(data-i18n="user.last_played") Last Played
|
|
|
|
th(data-i18n="user.status") Status
|
2014-08-07 16:03:00 -04:00
|
|
|
each session in recentlyPlayed
|
|
|
|
if session.get('levelName')
|
|
|
|
tr
|
|
|
|
td
|
|
|
|
- var posturl = ''
|
|
|
|
- if (session.get('team')) posturl = '?team=' + session.get('team')
|
|
|
|
a(href="/play/level/#{session.get('levelID') + posturl}")= session.get('levelName') + (session.get('team') ? ' (' + session.get('team') + ')' : '')
|
|
|
|
td= moment(session.get('changed')).fromNow()
|
|
|
|
if session.get('state').complete === true
|
2014-08-12 07:41:14 -04:00
|
|
|
td(data-i18n="user.status_completed") Completed
|
2014-08-07 16:03:00 -04:00
|
|
|
else if ! session.isMultiplayer()
|
2014-08-12 07:41:14 -04:00
|
|
|
td(data-i18n="user.status_unfinished") Unfinished
|
2014-08-07 16:03:00 -04:00
|
|
|
else
|
|
|
|
td
|
2014-07-16 06:39:18 -04:00
|
|
|
|
2014-08-07 16:03:00 -04:00
|
|
|
else
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
2014-08-12 07:41:14 -04:00
|
|
|
div(data-i18n="account.no_recent_games") No games played during the past two weeks.
|