Froze rails gems
[depot.git] / vendor / rails / railties / doc / guides / source / templates / guides.html.erb
1 <%-
2 manuals_index_url = ENV['MANUALSONRAILS_INDEX_URL'] || "index.html"
3 show_toc = ENV['MANUALSONRAILS_TOC'] != 'no'
4 -%>
5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
7 <head>
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9 <title><%- if multi_page? && !is_preamble? -%><%=h current_chapter.plain_title %> :: <% end %><%=h title %></title>
10 <!--[if lt IE 8]>
11 <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
12 <![endif]-->
13 <link href="stylesheets/base.css" media="screen" rel="Stylesheet" type="text/css" />
14 <link href="stylesheets/forms.css" media="screen" rel="Stylesheet" type="text/css" />
15 <link href="stylesheets/more.css" media="screen" rel="Stylesheet" type="text/css" />
16 <style type="text/css">
17 <%= include_file('inline.css') %>
18 </style>
19 </head>
20 <body>
21 <div id="header" <% if !show_toc %> class="notoc"<% end %>>
22 <div id="logo">
23 <a href="index.html" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
24 </div>
25
26 <h1 id="site_title"><span>Ruby on Rails</span></h1>
27 <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2>
28
29 <ul id="navMain">
30 <li class="first-child"><a href="http://www.rubyonrails.org/" title="Ruby on Rails" class="ruby_on_rails">Ruby on Rails</a></li>
31 <li><a class="manuals" href="index.html" title="Manuals Index">Guides Index</a></li>
32 </ul>
33 </div>
34
35 <div id="container"<% if !show_toc %> class="notoc"<% end %>>
36 <% if show_toc %>
37 <div id="sidebar">
38 <h2>Chapters</h2>
39 <%- if multi_page? -%>
40 <a href="<%=h chapters.first.basename %>">Preamble</a>
41 <%- end -%>
42 <ol>
43 <%- if multi_page? -%>
44 <%- for heading in table_of_contents -%>
45 <li>
46 <a href="<%=h heading.basename %>"><%= heading.title_without_numbers %></a>
47 <%- if !heading.children.empty? -%>
48 <ul>
49 <% for h in heading.children %>
50 <li><a href="<%=h h.basename %><%=h h.anchor %>"><%= h.title_without_numbers %></a></li>
51 <% end %>
52 </ul>
53 <%- end -%>
54 </li>
55 <%- end -%>
56 <%- else -%>
57 <%- for heading in table_of_contents -%>
58 <li>
59 <a href="<%=h heading.anchor %>"><%= heading.title_without_numbers %></a>
60 <%- if !heading.children.empty? -%>
61 <ul>
62 <% for h in heading.children %>
63 <li><a href="<%=h h.anchor %>"><%= h.title_without_numbers %></a></li>
64 <% end %>
65 </ul>
66 <%- end -%>
67 </li>
68 <%- end -%>
69 <%- end -%>
70 </ol>
71 </div>
72 <% end %>
73 <div id="content">
74 <%- if multi_page? && !is_preamble? -%>
75 <h2 id="<%=h current_chapter.anchor_id %>"><%= current_chapter.title %></h2>
76 <%- else -%>
77 <h1><%=h title %></h1>
78 <%- end -%>
79 <%= contents %>
80 <%- if multi_page? -%>
81 <div id="chapter_navigation">
82 <%- if prev_chapter -%>
83 <div class="left-floaty">
84 <a href="<%=h prev_chapter.basename %>">&laquo; <%= prev_chapter.title %></a>
85 </div>
86 <%- end -%>
87 <%- if next_chapter -%>
88 <div class="right-floaty">
89 <a href="<%=h next_chapter.basename %>"><%= next_chapter.title %> &raquo;</a>
90 </div>
91 <%- end -%>
92 </div>
93 <%- end -%>
94 </div>
95 </div>
96 </body>
97 </html>