Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup from Hackathon #1

Merged
merged 3 commits into from
Oct 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Questions to Personas.xlsx
Binary file not shown.
Binary file added User Flow Chart.vsdx
Binary file not shown.
3 changes: 3 additions & 0 deletions survey-app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ exports = module.exports = function (app) {
// Views
app.get('/', routes.views.index);
app.get('/survey', routes.views.survey);
app.get('/about', routes.views.about);
app.get('/team', routes.views.team);
app.get('/resources', routes.views.resources);

// NOTE: To protect a route so that only admins can see it, use the requireUser middleware:
// app.get('/protected', middleware.requireUser, routes.views.protected);
Expand Down
6 changes: 3 additions & 3 deletions survey-app/routes/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var _ = require('lodash');
exports.initLocals = function (req, res, next) {
res.locals.navLinks = [
{ label: 'Home', key: 'home', href: '/' },
{ label: 'About', key: 'about', href: '/'},
{ label: 'Team Folder', key: 'team', href: '/'},
{ label: 'Resources', key: 'resources', href: '/'},
{ label: 'About', key: 'about', href: '/about'},
{ label: 'Team Folder', key: 'team', href: '/team'},
{ label: 'Resources', key: 'resources', href: '/resources'},
{ label: 'Assessment', key: 'survey', href:'/survey'},
];
res.locals.user = req.user;
Expand Down
7 changes: 7 additions & 0 deletions survey-app/routes/views/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var keystone = require('keystone');
exports = module.exports = function (req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
locals.section = 'about';
view.render('about');
};
7 changes: 7 additions & 0 deletions survey-app/routes/views/resources.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var keystone = require('keystone');
exports = module.exports = function (req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
locals.section = 'resources';
view.render('resources');
};
7 changes: 7 additions & 0 deletions survey-app/routes/views/team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var keystone = require('keystone');
exports = module.exports = function (req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
locals.section = 'team';
view.render('team');
};
5 changes: 5 additions & 0 deletions survey-app/templates/views/about.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends ../layouts/default

block content
.container: .jumbotron
h2 About
5 changes: 5 additions & 0 deletions survey-app/templates/views/resources.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends ../layouts/default

block content
.container: .jumbotron
h2 Resources
5 changes: 5 additions & 0 deletions survey-app/templates/views/team.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends ../layouts/default

block content
.container: .jumbotron
h2 Team Folder