-
Notifications
You must be signed in to change notification settings - Fork 65
/
layout.html.erb
116 lines (107 loc) · 3.98 KB
/
layout.html.erb
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%= yield(:page_title) %></title>
<!-- guides styles -->
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="stylesheets/strobe.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/overrides.style.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/overrides.print.css" media="print" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- syntax highlighting styles -->
<link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/shThemeStrobeGuides.css" />
</head>
<body class="guide">
<% if @edge %>
<div><img src="images/edge_badge.png" alt="edge-badge" id="edge-badge" /></div>
<% end %>
<header role="banner">
<div class="container">
<h1 id="logo">
<a href="/"><img src="images/header/logo.png" alt="SproutCore" /></a>
</h1>
<nav role="navigation">
<ul>
<li><a href="#">About</a></li>
<li class="disabled">Demos</li>
<li><a href="#">Docs</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Blog</a></li>
</ul>
</nav>
</div>
</header>
<div id="feature">
<div class="wrapper">
<div class="feature_header">
<% if page_header = yield(:page_header).presence %>
<%= page_header %>
<% else %>
<a href="/"><img src="../images/strobe/guides.png"></a>
<h2><a href="/"><%= Guides.meta["title"] %></a></h2>
<p><%= Guides.meta["description"] %></p>
<% end %>
</div>
<div class="feature_sidebar">
<a href="index.html" onclick="guideMenu(); return false;" id="guidesMenu">
Guides Index <span id="guidesArrow">▸</span>
</a>
</div>
</div>
</div>
<div id="container">
<div class="wrapper">
<div id="mainCol">
<% if header_section = yield(:header_section).presence %>
<div class="headerSection">
<%= header_section %>
</div>
<% end %>
<%= yield %>
</div>
<% if index_section = yield(:index_section).presence %>
<%= index_section %>
<% else %>
<div id="subCol">
<%= yield(:sidebar) %>
</div>
<% end %>
</div>
</div>
<hr class="hide" />
<div id="footer">
<div class="wrapper">
<%= yield :license %>
</div>
</div>
<script type="text/javascript" src="javascripts/guides.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushRuby.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushJScript.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushCss.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushXml.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushSql.js"></script>
<script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushPlain.js"></script>
<script type="text/javascript">
SyntaxHighlighter.all()
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19584397-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl': 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>