Remove template path, load correct javascript in universal header
This commit is contained in:
5
app.js
5
app.js
@ -214,6 +214,8 @@ app.use(function (req, res, next) {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.use(express.static(__dirname + '/public', {maxAge: 86400000 }));
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
// Remember original destination before login.
|
// Remember original destination before login.
|
||||||
var path = req.path.split('/')[1];
|
var path = req.path.split('/')[1];
|
||||||
@ -225,9 +227,6 @@ app.use(function (req, res, next) {
|
|||||||
req.session.returnTo = req.path;
|
req.session.returnTo = req.path;
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
app.use(express.static(__dirname + '/public', {maxAge: 86400000 }));
|
|
||||||
app.use('/template', express.static(__dirname +
|
|
||||||
'/public/bower_components/angular-ui-bootstrap/template'));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main routes.
|
* Main routes.
|
||||||
|
@ -10,8 +10,6 @@ var _ = require('lodash'),
|
|||||||
resources = require('./resources'),
|
resources = require('./resources'),
|
||||||
R = require('ramda');
|
R = require('ramda');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /signin
|
* GET /signin
|
||||||
* Siginin page.
|
* Siginin page.
|
||||||
|
@ -34,6 +34,8 @@ script.
|
|||||||
// Leave alone below
|
// Leave alone below
|
||||||
script(src="/js/main.js")
|
script(src="/js/main.js")
|
||||||
|
|
||||||
|
script(src="/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js")
|
||||||
|
|
||||||
link(rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lato:400|Inconsolata")
|
link(rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lato:400|Inconsolata")
|
||||||
|
|
||||||
link(rel="stylesheet" type="text/css" href="/bower_components/cal-heatmap/cal-heatmap.css")
|
link(rel="stylesheet" type="text/css" href="/bower_components/cal-heatmap/cal-heatmap.css")
|
||||||
|
Reference in New Issue
Block a user