From: declerambaul Date: Fri, 13 Apr 2012 15:42:10 +0000 (+0200) Subject: Creating d3 testing branch. Added d3 to modules.yaml. geo.jade for displaying the... X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=2109cd4da39fb0eff0fd079f597b7135b11b96ce;p=limn.git Creating d3 testing branch. Added d3 to modules.yaml. geo.jade for displaying the world graph --- diff --git a/lib/server/server.co b/lib/server/server.co index e988ac6..291959f 100755 --- a/lib/server/server.co +++ b/lib/server/server.co @@ -190,6 +190,9 @@ app.get '/datasources/all', (req, res, next) -> app.get '/', (req, res) -> res.render 'dashboard' +app.get '/geo', (req, res) -> + res.render 'geo' + app.get '/:type/:action/?', (req, res, next) -> {type, action} = req.params if exists "#WWW/#type/#action.jade" diff --git a/www/css/geo-display.styl b/www/css/geo-display.styl new file mode 100644 index 0000000..e1d53af --- /dev/null +++ b/www/css/geo-display.styl @@ -0,0 +1,8 @@ +@import 'colors' +@import 'nib' + +section.map + position relative + max-width 900px + margin 0 auto + diff --git a/www/geo.jade b/www/geo.jade new file mode 100644 index 0000000..b16ddac --- /dev/null +++ b/www/geo.jade @@ -0,0 +1,10 @@ +extends layout + +block title + title Geolocation + +append styles + mixin css('geo-display.css') + +block main-scripts + script(src="/js/kraken/main-geo.js?"+version) diff --git a/www/modules.yaml b/www/modules.yaml index c217b2d..cceb821 100644 --- a/www/modules.yaml +++ b/www/modules.yaml @@ -37,6 +37,7 @@ dev: - jade.runtime.min - moment.mod.min - dygraph + - d3 - suffix: .mod.js paths: