From d7a600bc20daf3e408d13a20488f2bf9adee52dc Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 1 Jun 2015 12:39:01 -0700 Subject: [PATCH] update nonprofit buttons to allow directory access from nonprofit landing page --- views/nonprofits/directory.jade | 7 +++++-- views/nonprofits/show.jade | 17 +++++++++-------- views/resources/nonprofits.jade | 3 ++- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/views/nonprofits/directory.jade b/views/nonprofits/directory.jade index 61c5ff44ab..2cb2794cbc 100644 --- a/views/nonprofits/directory.jade +++ b/views/nonprofits/directory.jade @@ -16,5 +16,8 @@ block content h2.negative-15= nonprofit.name h3.negative-15= nonprofit.whatDoesNonprofitDo a.text-center.btn.btn-primary.btn-lg(href='/nonprofits/' + nonprofit.name.toLowerCase().replace(/\s/g, '-')) Read more - .spacer - .spacer + + .col-xs-12.col-sm-8.col-sm-offset-2 + if (!user) + a.btn.btn-cta.signup-btn.btn-block(href="/nonprofits-form") My nonprofit needs coding help + .spacer diff --git a/views/nonprofits/show.jade b/views/nonprofits/show.jade index 07a9c6cda0..e8c5f8debc 100644 --- a/views/nonprofits/show.jade +++ b/views/nonprofits/show.jade @@ -55,20 +55,21 @@ block content for assignedCamper in assignedCampers a(href='/' + assignedCamper.username class="interested-camper-image") img.profile-picture.float-right(src=assignedCamper.picture) - .spacer if (!buttonActive) .col-xs-12.col-sm-8.col-sm-offset-2 .text-center - a.btn.btn-primary.btn-big.btn-block.disabled(href='/nonprofits/interested-in-nonprofit/#{dashedName}') I'm interested in building this project * - p * Complete all our Bonfires, Ziplines, and Basejumps to unlock this. + if !user + a.btn.btn-cta.signup-btn.btn-block(href="/login") Start learning to code (it's free) + .button-spacer + else + a.btn.btn-primary.btn-big.btn-block.disabled(href='/nonprofits/interested-in-nonprofit/#{dashedName}') I'm interested in building this project * + p * Complete all our Bonfires, Ziplines, and Basejumps to unlock this. a.btn.btn-info.btn-big.btn-block(href='/nonprofits/directory') Show all Nonprofit Projects + .spacer if (buttonActive) .col-xs-12.col-sm-8.col-sm-offset-2 .text-center a.btn.btn-primary.btn-big.btn-block(href='/nonprofits/interested-in-nonprofit/#{dashedName}') I'm interested in building this project + .button-spacer a.btn.btn-info.btn-big.btn-block(href='/nonprofits/directory') Show all Nonprofit Projects - .row - .col-xs-12.text-center - if !user - a.btn.btn-cta.signup-btn.btn-primary(href="/login") Start learning to code (it's free) - .spacer + .spacer diff --git a/views/resources/nonprofits.jade b/views/resources/nonprofits.jade index ab079a1893..250488d5bd 100644 --- a/views/resources/nonprofits.jade +++ b/views/resources/nonprofits.jade @@ -53,4 +53,5 @@ block content h2.black-text ...and other tools .big-break a.btn.btn-cta.signup-btn.btn-block(href="/nonprofits-form") My nonprofit needs coding help - .btn-spacer + .button-spacer + a.btn.btn-cta.btn-success.btn-block(href="/nonprofits/directory") Browse our directory of nonprofit we've helped