2014-01-03 13:32:13 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
2014-04-07 18:21:05 -04:00
|
|
|
|
2014-04-09 16:14:52 -04:00
|
|
|
if myProfile || (me.isAdmin() && user.get('jobProfile'))
|
|
|
|
.profile-control-bar
|
|
|
|
if myProfile
|
|
|
|
a(href="/account/settings")
|
|
|
|
button.btn.edit-settings-button
|
|
|
|
i.icon-cog
|
|
|
|
span(data-i18n="account_profile.edit_settings") Edit Settings
|
|
|
|
if me.isAdmin() && user.get('jobProfile')
|
|
|
|
button.btn.edit-settings-button#toggle-job-profile-approved
|
|
|
|
i.icon-cog
|
|
|
|
span(data-i18n='account_profile.approved').approved Approved
|
|
|
|
span(data-i18n='account_profile.approved').not-approved Not Approved
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-04-07 18:21:05 -04:00
|
|
|
if user.get('jobProfile')
|
|
|
|
- var profile = user.get('jobProfile');
|
2014-04-09 16:14:52 -04:00
|
|
|
.job-profile-container
|
|
|
|
.job-profile-row
|
|
|
|
.left-column.full-height-column
|
|
|
|
.profile-photo-container
|
2014-04-09 19:46:44 -04:00
|
|
|
img.profile-photo(src=user.getPhotoURL(240))
|
2014-04-09 16:14:52 -04:00
|
|
|
.profile-caption= profile.jobTitle || 'Software Developer'
|
|
|
|
|
|
|
|
if profileLinks.length
|
|
|
|
ul.links
|
|
|
|
each link in profileLinks
|
|
|
|
li(title=profile.name + " on " + link.name, class=link.icon ? "has-icon" : "")
|
|
|
|
a(href=link.link)
|
|
|
|
if link.icon
|
|
|
|
img(src=link.icon.url, alt=link.icon.name)
|
|
|
|
else
|
|
|
|
button.btn.btn-large.btn-inverse.flat-button= link.name
|
|
|
|
|
2014-04-07 18:21:05 -04:00
|
|
|
div= profile.city + ', ' + profile.country
|
|
|
|
div= profile.visa
|
|
|
|
div Looking for: #{profile.lookingFor}
|
2014-04-09 16:14:52 -04:00
|
|
|
div Last updated #{moment(profile.updated).fromNow()}
|
|
|
|
|
|
|
|
button#contact-candidate.btn.btn-large.btn-inverse.flat-button Contact #{profile.name.split(' ')[0]}
|
|
|
|
|
|
|
|
.middle-column.full-height-column
|
|
|
|
h3= profile.name
|
|
|
|
p= profile.shortDescription
|
|
|
|
|
2014-04-07 18:21:05 -04:00
|
|
|
each skill in profile.skills
|
|
|
|
code= skill
|
|
|
|
span
|
2014-04-09 16:14:52 -04:00
|
|
|
div.long-description!= marked(profile.longDescription)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-04-07 18:21:05 -04:00
|
|
|
if profile.work.length
|
2014-04-10 14:58:51 -04:00
|
|
|
h3.experience-header
|
2014-04-09 16:14:52 -04:00
|
|
|
img.header-icon(src="/images/pages/account/profile/work.png", alt="")
|
|
|
|
| Work Experience
|
2014-04-07 18:21:05 -04:00
|
|
|
each job in profile.work
|
2014-04-09 16:14:52 -04:00
|
|
|
div.duration.pull-right= job.duration
|
|
|
|
| #{job.role} at #{job.employer}
|
2014-04-07 18:21:05 -04:00
|
|
|
.clearfix
|
2014-01-03 13:32:13 -05:00
|
|
|
|
2014-04-07 18:21:05 -04:00
|
|
|
if profile.education.length
|
2014-04-10 14:58:51 -04:00
|
|
|
h3.experience-header
|
2014-04-09 16:14:52 -04:00
|
|
|
img.header-icon(src="/images/pages/account/profile/education.png", alt="")
|
|
|
|
| Education
|
2014-04-07 18:21:05 -04:00
|
|
|
each school in profile.education
|
2014-04-09 16:14:52 -04:00
|
|
|
div.duration.pull-right= school.duration
|
|
|
|
| #{school.degree} at #{school.school}
|
2014-04-07 18:21:05 -04:00
|
|
|
.clearfix
|
|
|
|
|
2014-04-07 20:58:02 -04:00
|
|
|
if user.get('jobProfileNotes') || me.isAdmin()
|
2014-04-10 14:58:51 -04:00
|
|
|
h3.experience-header Our Notes
|
2014-04-07 20:58:02 -04:00
|
|
|
- var notes = user.get('jobProfileNotes') || '';
|
|
|
|
if me.isAdmin()
|
|
|
|
textarea#job-profile-notes!= notes
|
|
|
|
else
|
2014-04-10 14:58:51 -04:00
|
|
|
div!= marked(notes)
|
2014-04-07 20:58:02 -04:00
|
|
|
|
2014-04-09 16:14:52 -04:00
|
|
|
.right-column.full-height-column
|
2014-04-07 18:21:05 -04:00
|
|
|
if profile.projects.length
|
2014-04-09 16:14:52 -04:00
|
|
|
h3 Projects
|
2014-04-07 18:21:05 -04:00
|
|
|
ul.projects
|
|
|
|
each project in profile.projects
|
|
|
|
li
|
2014-04-09 16:14:52 -04:00
|
|
|
a(href=project.link)
|
2014-04-10 14:58:51 -04:00
|
|
|
.project-image(style="background-image: url(/file/" + project.picture + ")")
|
2014-04-09 16:14:52 -04:00
|
|
|
p= project.name
|
2014-04-10 14:58:51 -04:00
|
|
|
div!= marked(project.description)
|
2014-01-03 13:32:13 -05:00
|
|
|
|
|
|
|
else
|
2014-04-09 19:46:44 -04:00
|
|
|
.public-profile-container
|
|
|
|
h2
|
2014-04-07 18:21:05 -04:00
|
|
|
span(data-i18n="account_profile.profile_for_prefix") Profile for
|
2014-04-09 19:46:44 -04:00
|
|
|
span= user.get('name')
|
2014-04-07 18:21:05 -04:00
|
|
|
span(data-i18n="account_profile.profile_for_suffix")
|
2014-01-27 14:45:24 -05:00
|
|
|
|
2014-04-09 19:46:44 -04:00
|
|
|
img.profile-photo(src=user.getPhotoURL(256))
|
|
|
|
|
|
|
|
h2 TODO
|
|
|
|
p Public user profiles are not ready yet.
|