Skip to content

Commit 7300207

Browse files
authored
Merge pull request #17 from RevolutionVA/development
Board members & Schedule
2 parents 580e903 + 455b3e0 commit 7300207

File tree

10 files changed

+64
-4
lines changed

10 files changed

+64
-4
lines changed

controllers/about.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = () => {
1111
socialMedia: content.getSocialMedia(),
1212
pages: content.getPages(),
1313
organizers: content.getOrganizers(),
14-
volunteers: content.getVolunteers()
14+
volunteers: content.getVolunteers(),
15+
boardMembers: content.getBoardMembers()
1516
})
1617
.then(results => ({
1718
locals: {
@@ -21,6 +22,7 @@ module.exports = () => {
2122
},
2223
intro: results.pages.about.intro,
2324
organizers: results.organizers,
24-
volunteers: results.volunteers
25+
volunteers: results.volunteers,
26+
boardMembers: results.boardMembers
2527
}));
2628
}

public/css/print.css

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/print.css.map

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/print.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
header.site-header {
2+
display: none;
3+
}
4+
5+
a[href]:after {
6+
content: none !important;
7+
}
8+
9+
.heart.unchecked {
10+
display: none;
11+
}

public/css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ hr {
608608
}
609609
}
610610

611+
612+
611613
.btn-toggle {
612614
&.closed .fa-minus {
613615
display: none;

public/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jQuery(function ($) {
8989
favorite(heart.data('heart'), !heart.hasClass('unchecked'));
9090
});
9191

92-
var favorites = (window.localStorage.getItem('revConfSchedule') || '').split(',') || [],
92+
var favorites = (window.localStorage.getItem('revConfSchedule') || '').split(','),
9393
saveTimeout = false;
9494

9595
favorites = Array.isArray(favorites) ? favorites : [];

services/content.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ module.exports = function () {
7878
});
7979
},
8080

81+
getBoardMembers: function () {
82+
83+
return getType('humans')
84+
.then(data => {
85+
return data
86+
.filter(h => h.role.includes('Board Member'))
87+
.sort((h1, h2) => h1.lastName > h2.lastName);
88+
});
89+
},
90+
8191
getSpeakers: function () {
8292

8393
return getTalksBySpeaker()

views/pages/about.ejs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<% include ../partials/header.ejs %>
22
<%
33
organizers = organizers || [];
4+
boardMembers = boardMembers || [];
45
volunteers = volunteers || [];
56
%>
67
<div class="page-sections">
@@ -23,6 +24,18 @@ volunteers = volunteers || [];
2324
</div>
2425
</div>
2526

27+
<% if(boardMembers.length) { %>
28+
<h3 class="h2 league-gothic">Our Board Members</h3>
29+
<div class="organizers">
30+
<div class="row">
31+
<% boardMembers.forEach(function(human) { %>
32+
<%- include('../partials/human.ejs', {human: human}) %>
33+
<% }); %>
34+
</div>
35+
</div>
36+
<% } %>
37+
38+
<% if(volunteers.length) { %>
2639
<h3 class="h2 league-gothic">Our Volunteers</h3>
2740
<div class="organizers">
2841
<div class="row">
@@ -31,6 +44,7 @@ volunteers = volunteers || [];
3144
<% }); %>
3245
</div>
3346
</div>
47+
<% } %>
3448

3549
</div>
3650
</div>

views/partials/header.ejs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bodyClass = bodyClass || [];
2222
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
2323

2424
<link rel="stylesheet" href="/css/style.css"/>
25+
<link rel="stylesheet" href="/css/print.css" media="print"/>
2526

2627
<link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-touch-icon-57x57.png">
2728
<link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-touch-icon-60x60.png">
@@ -87,5 +88,8 @@ bodyClass = bodyClass || [];
8788
<li class="nav-item" data-section-id="location">
8889
<a class="nav-link" href="/#location"><span>Location</span></a>
8990
</li>
91+
<li class="nav-item">
92+
<a class="nav-link" href="/schedule"><span>Schedule</span></a>
93+
</li>
9094
</ul>
9195
</header>

0 commit comments

Comments
 (0)