Fixed about page by adding static pages controller
This commit is contained in:
29
api/controllers/StaticPagesController.js
Normal file
29
api/controllers/StaticPagesController.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* StaticPagesController
|
||||
*
|
||||
* @module :: Controller
|
||||
* @description :: A set of functions called `actions`.
|
||||
*
|
||||
* Actions contain code telling Sails how to respond to a certain type of request.
|
||||
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
|
||||
*
|
||||
* You can configure the blueprint URLs which trigger these actions (`config/controllers.js`)
|
||||
* and/or override them with custom routes (`config/routes.js`)
|
||||
*
|
||||
* NOTE: The code you write here supports both HTTP and Socket.io automatically.
|
||||
*
|
||||
* @docs :: http://sailsjs.org/#!documentation/controllers
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Overrides for the settings in `config/controllers.js`
|
||||
* (specific to StaticPagesController)
|
||||
*/
|
||||
_config: {},
|
||||
|
||||
about: function(req, res) {
|
||||
return res.view();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -37,7 +37,7 @@ block modals
|
||||
.modal-dialog.modal-lg
|
||||
.modal-content
|
||||
.modal-header
|
||||
|
||||
|
|
||||
button.close(type='button',data-dismiss='modal',aria-hidden='true') ×
|
||||
.modal-body
|
||||
h4.hidden.modal-title#menuModalLabel Menu
|
||||
|
||||
@@ -16,6 +16,10 @@ module.exports.policies = {
|
||||
|
||||
'*': false,
|
||||
|
||||
StaticPagesController: {
|
||||
'*': true
|
||||
},
|
||||
|
||||
RunController: {
|
||||
'*': false,
|
||||
'find': true,
|
||||
|
||||
@@ -36,7 +36,8 @@ module.exports.routes = {
|
||||
view: 'home/index'
|
||||
},
|
||||
'/about': {
|
||||
view: 'about'
|
||||
controller: 'staticPagesController',
|
||||
action: 'about'
|
||||
},
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
extends interior-page-layout
|
||||
extends ../interior-page-layout
|
||||
|
||||
block pagetitle
|
||||
span.glyphicon.glyphicon-question-sign
|
||||
@@ -41,6 +41,7 @@ block interiorcontent
|
||||
.col-xs-12.col-sm-4
|
||||
h2 Recent updates
|
||||
ul
|
||||
li [5/24/14] Fixed this page!
|
||||
li [5/15/14] Moved nav, "rebranded" lunch run me to lunch run|me
|
||||
li [5/13/14] Added meta tags
|
||||
li [5/13/14] Added validation messaging to create-run form
|
||||
Reference in New Issue
Block a user