Table styling/ copy edit

This commit is contained in:
Michael Schmatz 2014-07-07 23:19:07 -07:00
parent cbd6cacd61
commit f704a33ece
3 changed files with 18 additions and 7 deletions

View file

@ -146,10 +146,21 @@
margin-top: 10px margin-top: 10px
padding-bottom: 5px padding-bottom: 5px
padding-top: 10px padding-top: 10px
.candidate-name-cell
position: relative
top: 10px
//refactor later, bad practice
.border_row .border_row
border-bottom: 1px solid #d3d3d3 border-bottom: 1px solid #d3d3d3
vertical-align: bottom vertical-align: bottom
td
padding-top: 0px padding-top: 0px
padding-bottom: 5px
.description_row td
padding-bottom: 0px
padding-top: 15px
#results #results
display: inline-block display: inline-block

View file

@ -93,7 +93,8 @@ block content
td(rowspan=3) td(rowspan=3)
.candidate-picture .candidate-picture
img(src=candidate.getPhotoURL(50,false,true), alt=profile.name, title=profile.name, width=50) img(src=candidate.getPhotoURL(50,false,true), alt=profile.name, title=profile.name, width=50)
td if !isntEmployer
td.candidate-name-cell
strong strong
| #{profile.name} | #{profile.name}
tr.description_row(data-candidate-id=candidate.id) tr.description_row(data-candidate-id=candidate.id)
@ -136,9 +137,7 @@ block content
h3(data-i18n="employers.weeding") We've done the weeding for you. h3(data-i18n="employers.weeding") We've done the weeding for you.
//this will break in i18n. Fix the inlining //this will break in i18n. Fix the inlining
p(data-i18n="employers.weeding_blurb") p(data-i18n="employers.weeding_blurb")
| Every candidate that has a | We only feature developers that we would work with. We've reviewed each profile (in addition to meeting with many of the candidates.)
span.glyphicon.glyphicon-earphone
| icon has already gone through a phone screen with us. We only feature developers that we would work with.
.reason .reason
img(class="employer_icon" src="/images/pages/employer/employer_icon3.png") img(class="employer_icon" src="/images/pages/employer/employer_icon3.png")
h3(data-i18n="employers.pass_screen") They will pass your technical screen. h3(data-i18n="employers.pass_screen") They will pass your technical screen.

View file

@ -155,6 +155,7 @@ module.exports = class EmployersView extends View
ctx.moment = moment ctx.moment = moment
ctx._ = _ ctx._ = _
ctx.numberOfCandidates = ctx.featuredCandidates.length ctx.numberOfCandidates = ctx.featuredCandidates.length
ctx.isntEmployer = not (@isEmployer() or me.isAdmin())
ctx ctx
isEmployer: -> isEmployer: ->