Commit d01f73e4 authored by Mark Stenglein's avatar Mark Stenglein
Browse files

add support for unified settings file

parent 94c1ba15
......@@ -5,6 +5,9 @@ var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// Load site wide configurations
var config = require('./config');
var routes = require('./routes/index');
var users = require('./routes/users');
......
var config = {}
// Application Name
config.siteName = "Schedules";
// Application Description (subtitle)
config.siteDescription = "A simple application to add your class schedule to calendar applications like Outlook and Google Calendar."
module.exports = config;
var express = require('express');
var router = express.Router();
// Load site wide configurations
var config = require('../config');
router.get('/docs', function(req, res, next) {
res.render('docs', { title: 'Schedules' });
res.render('docs', { config });
})
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Schedules' });
res.render('index', { config });
});
module.exports = router;
var express = require('express');
var router = express.Router();
// Load site wide configurations
var config = require('../config');
/* GET users listing. */
router.get('/', function(req, res, next) {
......
// Get the title from the rendering process
title= title
head
// Metadata
meta(charset='UTF-8')
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1")
// Scripts
script(src="/javascripts/jquery-2.2.4.min.js")
script(src='/javascripts/bootstrap.js')
script(src="https://use.fontawesome.com/1c4cae8f2d.js")
......
// This file extends the layout.jade file
extends layout
block content
div.containter-fluid
div.row
// Main site column
div.col-md-8
div.row
// Site branding row
div.row.center
center
// Font Awesome stack of circle and calendar for logo
span.fa-stack.fa-lg.fa-5x
i.fa.fa-circle-thin.fa-stack-2x(aria-hidden='true')
i.fa.fa-calendar.fa-stack-1x(aria-hidden='true')
h1 Schedules
em Description Here
// Title for the site
h1 #{config.siteName}
em #{config.siteDescription}
div.row
ul#search-type.nav.nav-tabs
li#search-tab(role='presentation')
a(href='#search' role='tab') Search for Classes
li#import-tab(role='presentation')
a(href='#import' role='tab') Batch Import
div#tab-contents.tab-content
div#search.tab-pane.fade(role='tabpanel')
p
This is the search tab.
div#import.tab-pane.fade(role='tabpanel')
p
This is the import tab.
div.col-md-1
div.col-md-10
ul#search-type.nav.nav-tabs
li#search-tab(role='presentation')
a(href='#search' role='tab') Search for Classes
li#import-tab(role='presentation')
a(href='#import' role='tab') Batch Import
div#tab-contents.tab-content
div#search.tab-pane.fade(role='tabpanel')
p
This is the search tab.
div#import.tab-pane.fade(role='tabpanel')
p
This is the import tab.
div.col-md-1
div#registered-classes.col-md-4(style='background-color: red;')
center
......
nav.navbar.navbar-default
div.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-responsive-collapse')
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.icon-bar
span.icon-bar
span.icon-bar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment