Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

Commit

Permalink
feat(landing): add controller/view support for landing page to displa…
Browse files Browse the repository at this point in the history
…y check-in link on designated m

add controller/view support for landing page to display check-in link on designated meeting days.

no
  • Loading branch information
Juxtaposeidon committed Jun 20, 2016
1 parent b9c6012 commit 6183bdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.index = function (req, res) {
res.render(res.locals.brigade.theme.slug + '/views/home', {
view: 'home',
title: 'Home',
checkin: (moment().format('dddd') === res.locals.brigade.checkIn.day),
brigade: res.locals.brigade,
projects: foundProjects.splice(0, NUM_PROJECTS_SHOWN),
events: foundEvents.slice(0, 3),
Expand Down
3 changes: 3 additions & 0 deletions themes/codeforpoland/views/home.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ extends layout

block content
#landing-hero(style="background-image:url(" + brigade.heroImage + ");background-position:bottom center;")
//Front end work needed for lines 6-7
if (checkin)
| #{brigade.checkIn.urlLink}
#landing-message.col-sm-7
p
strong= brigade.name
Expand Down

0 comments on commit 6183bdc

Please sign in to comment.