2 manuals_index_url = ENV['MANUALSONRAILS_INDEX_URL'] || "index.html"
3 show_toc = ENV['MANUALSONRAILS_TOC'] != 'no'
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">
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>
11 <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
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') %>
21 <div id="header" <% if !show_toc %> class="notoc"<% end %>>
23 <a href="index.html" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
26 <h1 id="site_title"><span>Ruby on Rails</span></h1>
27 <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2>
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>
35 <div id="container"<% if !show_toc %> class="notoc"<% end %>>
39 <%- if multi_page? -%>
40 <a href="<%=h chapters.first.basename %>">Preamble</a>
43 <%- if multi_page? -%>
44 <%- for heading in table_of_contents -%>
46 <a href="<%=h heading.basename %>"><%= heading.title_without_numbers %></a>
47 <%- if !heading.children.empty? -%>
49 <% for h in heading.children %>
50 <li><a href="<%=h h.basename %><%=h h.anchor %>"><%= h.title_without_numbers %></a></li>
57 <%- for heading in table_of_contents -%>
59 <a href="<%=h heading.anchor %>"><%= heading.title_without_numbers %></a>
60 <%- if !heading.children.empty? -%>
62 <% for h in heading.children %>
63 <li><a href="<%=h h.anchor %>"><%= h.title_without_numbers %></a></li>
74 <%- if multi_page? && !is_preamble? -%>
75 <h2 id="<%=h current_chapter.anchor_id %>"><%= current_chapter.title %></h2>
77 <h1><%=h title %></h1>
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 %>">« <%= prev_chapter.title %></a>
87 <%- if next_chapter -%>
88 <div class="right-floaty">
89 <a href="<%=h next_chapter.basename %>"><%= next_chapter.title %> »</a>