diff options
author | Kyle K <kylek389@gmail.com> | 2012-08-06 16:21:00 -0500 |
---|---|---|
committer | Kyle Kaminski <kyle@kkaminsk.com> | 2012-08-06 16:21:00 -0500 |
commit | 97683cdde3bfa29ed61850387c46f9a8dbc8da7f (patch) | |
tree | 972ac4b7bfb53aa2415d1740ebf5205b1fde6635 /protoype/views | |
parent | 8197b662f43999304f853db21dc2bb18c2959a58 (diff) | |
download | fubar-97683cdde3bfa29ed61850387c46f9a8dbc8da7f.tar.gz fubar-97683cdde3bfa29ed61850387c46f9a8dbc8da7f.tar.bz2 fubar-97683cdde3bfa29ed61850387c46f9a8dbc8da7f.zip |
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'} }
Diffstat (limited to 'protoype/views')
-rw-r--r-- | protoype/views/index.jade | 27 | ||||
-rw-r--r-- | protoype/views/layout.jade | 4 |
2 files changed, 18 insertions, 13 deletions
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 <u>#{user.tag}</u> >> #{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 - | <br />#{user.vehicle.year} #{user.vehicle.make} #{user.vehicle.model} - | <br />mods: #{user.vehicle.desc}<br /> - 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 <u>#{user.tag}</u> >> #{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 + | <br />#{user.vehicle.year} #{user.vehicle.make} #{user.vehicle.model} + | <br />mods: #{user.vehicle.desc}<br /> + 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 |