From f704a33ece2ebb0756f5f8d672e5ba13f212996a Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Mon, 7 Jul 2014 23:19:07 -0700 Subject: [PATCH] Table styling/ copy edit --- app/styles/employers.sass | 13 ++++++++++++- app/templates/employers.jade | 11 +++++------ app/views/employers_view.coffee | 1 + 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/app/styles/employers.sass b/app/styles/employers.sass index c88e1e3c6..78437d593 100644 --- a/app/styles/employers.sass +++ b/app/styles/employers.sass @@ -146,10 +146,21 @@ margin-top: 10px padding-bottom: 5px padding-top: 10px + .candidate-name-cell + position: relative + top: 10px + //refactor later, bad practice + + .border_row border-bottom: 1px solid #d3d3d3 vertical-align: bottom - padding-top: 0px + td + padding-top: 0px + padding-bottom: 5px + .description_row td + padding-bottom: 0px + padding-top: 15px #results display: inline-block diff --git a/app/templates/employers.jade b/app/templates/employers.jade index 3b3bfc661..8d066ab19 100644 --- a/app/templates/employers.jade +++ b/app/templates/employers.jade @@ -93,9 +93,10 @@ block content td(rowspan=3) .candidate-picture img(src=candidate.getPhotoURL(50,false,true), alt=profile.name, title=profile.name, width=50) - td - strong - | #{profile.name} + if !isntEmployer + td.candidate-name-cell + strong + | #{profile.name} tr.description_row(data-candidate-id=candidate.id) if curated && curated.shortDescription td.candidate-description #{curated.shortDescription} @@ -136,9 +137,7 @@ block content h3(data-i18n="employers.weeding") We've done the weeding for you. //this will break in i18n. Fix the inlining p(data-i18n="employers.weeding_blurb") - | Every candidate that has a - span.glyphicon.glyphicon-earphone - | icon has already gone through a phone screen with us. We only feature developers that we would work with. + | We only feature developers that we would work with. We've reviewed each profile (in addition to meeting with many of the candidates.) .reason img(class="employer_icon" src="/images/pages/employer/employer_icon3.png") h3(data-i18n="employers.pass_screen") They will pass your technical screen. diff --git a/app/views/employers_view.coffee b/app/views/employers_view.coffee index 8016cdaab..984e18365 100644 --- a/app/views/employers_view.coffee +++ b/app/views/employers_view.coffee @@ -155,6 +155,7 @@ module.exports = class EmployersView extends View ctx.moment = moment ctx._ = _ ctx.numberOfCandidates = ctx.featuredCandidates.length + ctx.isntEmployer = not (@isEmployer() or me.isAdmin()) ctx isEmployer: ->