forked from nko2/website
/
layout.jade
95 lines (90 loc) · 3.09 KB
/
layout.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
!!! 5
html
head
meta( charset='utf-8' )
meta( http-equiv='X-UA-Compatible', content='IE=edge,chrome=1' )
meta( name='viewport', content='width=1024' )
meta( name='_csrf', content=req.session._csrf )
title
- if (title())
= title()
| —
| Node.js Knockout
link( href='http://fonts.googleapis.com/css?family=Droid+Sans', rel='stylesheet', type='text/css' )
link( rel='stylesheet', href='/stylesheets/all-'+(assetManager.cacheHashes.css || '007')+'.css' )
script _gaq = [['_setAccount', 'UA-16773586-1'], ['_trackPageview']];
script( async=true, src='//www.google-analytics.com/ga.js' )
script( src='/javascripts/vendor/modernizr-2.5.3.min.js' )
body
#page( class=view.replace(/\//g,'-') )
aside
.login
- if (user)
img.avatar( src=avatar_url(user) )
a( href='/people/me' )= user.login
| (
a( href='/logout' ) Sign out
| )
- else
a.button( href='/login' ) Sign in
h3 Important dates
table.important-dates
tr
th Registration
td 8/30 – 11/3*
tr
th Competition
td 11/10 – 11/12
tr
th Judging
td 11/12 – 11/18
tr
th.asterisk( colspan=2 ) *space permitting
ul.sponsors
- _.shuffle(sponsors).forEach(function(sponsor) {
li: a( href=sponsor.url )
img( src='/images/sponsors/' + sponsor.image, class=sponsor.image.replace(/\.\w+$/, '') )
- });
#inner
header
h1: a( href='/' )
| node.js
span.ko ko
nav: ul
li: a( href='/rules' ) Rules
li: a( href='/teams' ) Teams
//- li: a( href='/judges' ) Judges
li: a( href='/locations' ) Locations
li: a( href='/sponsors' ) Sponsors
li: a( href='/prizes' ) Prizes
li: a( href='/about' ) About
//- if (req.user && (admin || req.user.contestant || req.user.judge))
//- li: a( href='/services' ) Services
#flash
- if (flash.info)
p.info= flash.info
!= body
footer: ul
li
a( href="http://2010.nodeknockout.com" ) 2010
|
a( href="http://2011.nodeknockout.com" ) 2011
li
a( href='mailto:all@nodeknockout.com' ) all@nodeknockout.com
li
a( href='http://twitter.com/node_knockout' ) @node_knockout
li
a( href='/about' ) press
script( src='/socket.io/socket.io.js' )
script( src='/javascripts/all-'+(assetManager.cacheHashes.js || '007')+'.js' )
script
$('a').live('mousedown', function() {
var href = this.href;
try {
if (/^https?:/.test(href)) { _gaq.push([ '_trackPageview', href ]); }
} catch(e) {}
});
$(function() {
if (nko.me)
nko.me.div.prop('title', !{JSON.stringify(req.user && req.user.login || null)});
});