Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated config, few tweaks

  • Loading branch information...
commit 17907fa70be8cd9a777330442e4bdde4c350064e 1 parent c694d37
Ray authored
Showing with 16 additions and 2 deletions.
  1. +3 −1 js/modules/shared/models.js
  2. +13 −1 templates/config.jade
View
4 js/modules/shared/models.js
@@ -2,7 +2,8 @@
(function(exports){
try {
- var validationRules = require('./validation-rules.js');
+ var _ = require('underscore')._,
+ validationRules = require('./validation-rules.js');
} catch(err) {
var validationRules = this.validationRules || {};
}
@@ -27,6 +28,7 @@
}
},
process: function(data) {
+ var data = _.extend(data, {models:exports})
return data;
}
}
View
14 templates/config.jade
@@ -27,4 +27,16 @@ body.config
tr
td.key
em= attr + ': '
- td.value= settings.routing[key][attr]
+ td.value= settings.routing[key][attr].toString()
+ h2 Models
+ - for (var model in models)
+ h3= model
+ table
+ thead
+ td.key Key
+ td.value Value
+ - for (var attr in models[model])
+ tr
+ td.key
+ em= attr + ': '
+ td.value= models[model][attr].toString()
Please sign in to comment.
Something went wrong with that request. Please try again.