From 97683cdde3bfa29ed61850387c46f9a8dbc8da7f Mon Sep 17 00:00:00 2001 From: Kyle K Date: Mon, 6 Aug 2012 16:21:00 -0500 Subject: adapt to new API changes small and they were painful, stylus wasn't working, the way we pass in local variables to jade changed, e.g. now I had to pass {'foo': 'bar'} where previously I did { locals {'foo': 'bar'} } --- protoype/views/index.jade | 27 +++++++++++++++------------ protoype/views/layout.jade | 4 +++- 2 files changed, 18 insertions(+), 13 deletions(-) (limited to 'protoype/views') diff --git a/protoype/views/index.jade b/protoype/views/index.jade index fba191d..4c984bc 100644 --- a/protoype/views/index.jade +++ b/protoype/views/index.jade @@ -1,13 +1,16 @@ -h2(style='border-bottom: dashed #FF9900; letter-spacing: -2px')= title -p Welcome to #{title}. Find your opponent, and get ready! +extends layout -h4(style='background-color: #99FF66; padding: 2px') User List -- each user in users - #listentry #{user.tag} >> #{user.location.loc} | - - if (user.status == 'online') - span(style='color: green; font-weight: bold')= user.status - - else - span(style='color: red; font-weight: bold')= user.status - |
#{user.vehicle.year} #{user.vehicle.make} #{user.vehicle.model} - |
mods: #{user.vehicle.desc}
- span(style='color: gray; font-style: italic')= user.userinfo.sig +block content + h2(style='border-bottom: dashed #FF9900; letter-spacing: -2px')= title + p Welcome to #{title}. Find your opponent, and get ready! + + h4(style='background-color: #99FF66; padding: 2px') User List + - each user in users + #listentry #{user.tag} >> #{user.location.loc} | + - if (user.status == 'online') + span(style='color: green; font-weight: bold')= user.status + - else + span(style='color: red; font-weight: bold')= user.status + |
#{user.vehicle.year} #{user.vehicle.make} #{user.vehicle.model} + |
mods: #{user.vehicle.desc}
+ span(style='color: gray; font-style: italic')= user.userinfo.sig diff --git a/protoype/views/layout.jade b/protoype/views/layout.jade index c7139b7..e44baef 100644 --- a/protoype/views/layout.jade +++ b/protoype/views/layout.jade @@ -5,5 +5,7 @@ html meta(http-equiv='Content-Type', content='text/html; charset=UTF-8') link(rel='stylesheet', href='/stylesheets/style.css') // body gets passed in here from *.jade? the '!=' outputs unescaped - body!= body + //body!= body + body + block content -- cgit v1.2.3