From: David Schoonover Date: Thu, 7 Jun 2012 10:20:07 +0000 (-0700) Subject: Stubs out project info pages. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=be1d742fcb333f4ba6e5b3cccee237417d4c2e8d;p=limn.git Stubs out project info pages. --- diff --git a/lib/server/server.co b/lib/server/server.co index 8f90ffd..9ee2a1f 100755 --- a/lib/server/server.co +++ b/lib/server/server.co @@ -195,6 +195,13 @@ app.get '/:type/:action/?', (req, res, next) -> else next() +app.get '/:type/?', (req, res, next) -> + {type} = req.params + if exists "#WWW/#type.jade" + res.render "#type" + else + next() + /** * Handle webhook notification to pull from origin. */ diff --git a/www/about.jade b/www/about.jade new file mode 100644 index 0000000..d3645d1 --- /dev/null +++ b/www/about.jade @@ -0,0 +1,13 @@ +extends layout + +block title + title About Us | Wikimedia Reportcard + +block content + section.about.centered + .page-header + h1 About Us + small (the Wikimedia Analytics Team) + + p hallo! + diff --git a/www/contact.jade b/www/contact.jade new file mode 100644 index 0000000..6a64d99 --- /dev/null +++ b/www/contact.jade @@ -0,0 +1,13 @@ +extends layout + +block title + title Contact | Wikimedia Reportcard + +block content + section.contact.centered + .page-header + h1 Contact Us + small (the Wikimedia Analytics Team) + + p hallo! + diff --git a/www/css/layout.styl b/www/css/layout.styl index 1892e48..742deb5 100644 --- a/www/css/layout.styl +++ b/www/css/layout.styl @@ -69,12 +69,16 @@ header, footer, #content z-index 12 position relative margin 0 auto - // max-width 960px &.fluid-inner width 80% min-width 960px max-width none + + .centered + margin 0 auto + max-width 960px + // .spacer offsets #content to pad for header .spacer diff --git a/www/geo.jade b/www/geo.jade index bf0c0d2..c7f3d30 100644 --- a/www/geo.jade +++ b/www/geo.jade @@ -3,6 +3,12 @@ extends layout block title title Editors by Location, February 2012 | English Wikipedia +append styles + mixin css('geo-display.css') + +block main-scripts + script(src="/js/kraken/main-geo.js?"+version) + block content section.geo .page-header @@ -29,9 +35,3 @@ block content .help h6 Zoom/Pan using mouse. -append styles - mixin css('geo-display.css') - -block main-scripts - script(src="/js/kraken/main-geo.js?"+version) - diff --git a/www/help.jade b/www/help.jade new file mode 100644 index 0000000..b3925a6 --- /dev/null +++ b/www/help.jade @@ -0,0 +1,13 @@ +extends layout + +block title + title Help | Wikimedia Reportcard + +block content + section.limn-project.centered + .page-header + h1 Help + small (Maybe) + + p hallo! + diff --git a/www/layout.jade b/www/layout.jade index 3b325e8..a2a1d9b 100644 --- a/www/layout.jade +++ b/www/layout.jade @@ -20,7 +20,7 @@ html(lang="en", dir="ltr") link(type="image/x-icon", rel="shortcut icon", href="/favicon.ico") block title - title GraphKit + title Limn body block body @@ -35,7 +35,7 @@ html(lang="en", dir="ltr") .site-map.col.span4 h3 i.hicon-chart-curve.icon-white.icon-sm - a(href="/") GraphKit + a(href="/") Limn ul.site-level li i.icon-home.icon-white @@ -56,7 +56,7 @@ html(lang="en", dir="ltr") a(href="/project") Project ul //- - li: a(href="mailto:dsc@wikimedia.org?subject=Reportcard/GraphKit Feedback") Feedback! + li: a(href="mailto:dsc@wikimedia.org?subject=Reportcard/Limn Feedback") Feedback! li: a(href="/blog") Blog li: a(href="/docs/roadmap") Roadmap li: a(href="https://github.com/wikimedia/graphkit", target="_blank") Source Repository @@ -71,7 +71,7 @@ html(lang="en", dir="ltr") i.icon-comment.icon-white a(href="/project") Get Involved! p - a(href="/project", target="_blank") GraphKit + a(href="/project") Limn | is a(href="https://github.com/wikimedia/graphkit", target="_blank") open-source software | , made with love by the @@ -79,7 +79,7 @@ html(lang="en", dir="ltr") | . p | Find a bug or have a suggestion? - a(href="mailto:dsc@wikimedia.org?subject=GraphKit Feedback") We'd love to hear from you! + a(href="mailto:dsc@wikimedia.org?subject=Limn Feedback") We'd love to hear from you! .about-wmf.col.span4 h3 @@ -129,9 +129,7 @@ html(lang="en", dir="ltr") script(src=src+"?"+version) block page-scripts - block main-scripts - script(src="/js/kraken/main.js?"+version) block addenda .rilke: blockquote diff --git a/www/project.jade b/www/project.jade new file mode 100644 index 0000000..5ef17d5 --- /dev/null +++ b/www/project.jade @@ -0,0 +1,13 @@ +extends layout + +block title + title Limn: A Graphing Toolkit | Wikimedia Reportcard + +block content + section.limn-project.centered + .page-header + h1 Limn + small A Graphing Toolkit + + p hallo! +