layout.html.erb 5.5 KB
Newer Older
N
Nate Berkopec 已提交
1
<!DOCTYPE html>
2

3 4 5
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7

8
<title><%= yield(:page_title) || 'Ruby on Rails Guides' %></title>
9 10
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
11

12 13
<link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" />
<link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shThemeRailsGuides.css" />
14 15

<link rel="stylesheet" type="text/css" href="stylesheets/fixes.css" />
R
Robby Colvin 已提交
16 17

<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
18 19
</head>
<body class="guide">
20 21 22 23 24
  <% if @edge %>
  <div>
    <img src="images/edge_badge.png" alt="edge-badge" id="edge-badge" />
  </div>
  <% end %>
25 26
  <div id="topNav">
    <div class="wrapper">
27 28 29 30 31 32 33 34
      <strong class="more-info-label">More at <a href="http://rubyonrails.org/">rubyonrails.org:</a> </strong>
      <span class="red-button more-info-button">
        More Ruby on Rails
      </span>
      <ul class="more-info-links s-hidden">
        <li class="more-info"><a href="http://weblog.rubyonrails.org/">Blog</a></li>
        <li class="more-info"><a href="http://guides.rubyonrails.org/">Guides</a></li>
        <li class="more-info"><a href="http://api.rubyonrails.org/">API</a></li>
35
        <li class="more-info"><a href="https://stackoverflow.com/questions/tagged/ruby-on-rails">Ask for help</a></li>
36 37
        <li class="more-info"><a href="https://github.com/rails/rails">Contribute on GitHub</a></li>
      </ul>
38 39 40 41 42 43
    </div>
  </div>
  <div id="header">
    <div class="wrapper clearfix">
      <h1><a href="index.html" title="Return to home page">Guides.rubyonrails.org</a></h1>
      <ul class="nav">
44 45
        <li><a class="nav-item" href="index.html">Home</a></li>
        <li class="guides-index guides-index-large">
R
Ryunosuke SATO 已提交
46
          <a href="index.html" id="guidesMenu" class="guides-index-item nav-item">Guides Index</a>
47 48
          <div id="guides" class="clearfix" style="display: none;">
            <hr />
V
Vijay Dev 已提交
49 50 51 52 53 54 55 56 57 58
            <% ['L', 'R'].each do |position| %>
              <dl class="<%= position %>">
              <% docs_for_menu(position).each do |section| %>
                <dt><%= section['name'] %></dt>
                <% finished_documents(section['documents']).each do |document| %>
                <dd><a href="<%= document['url'] %>"><%= document['name'] %></a></dd>
                <% end %>
              <% end %>
              </dl>
            <% end %>
59 60
          </div>
        </li>
61 62 63 64 65 66 67 68 69 70 71 72 73
        <li><a class="nav-item" href="contributing_to_ruby_on_rails.html">Contribute</a></li>
        <li class="guides-index guides-index-small">
          <select class="guides-index-item nav-item">
            <option value="index.html">Guides Index</option>
            <% docs_for_menu.each do |section| %>
              <optgroup label="<%= section['name'] %>">
                <% finished_documents(section['documents']).each do |document| %>
                  <option value="<%= document['url'] %>"><%= document['name'] %></option>
                <% end %>
              </optgroup>
            <% end %>
          </select>
        </li>
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
      </ul>
    </div>
  </div>
  <hr class="hide" />

  <div id="feature">
    <div class="wrapper">
      <%= yield :header_section %>

      <%= yield :index_section %>
    </div>
  </div>

  <div id="container">
    <div class="wrapper">
      <div id="mainCol">
90
        <%= yield %>
V
Vijay Dev 已提交
91

92 93
        <h3>Feedback</h3>
        <p>
94
          You're encouraged to help improve the quality of this guide.
95 96
        </p>
        <p>
97 98
          Please contribute if you see any typos or factual errors.
          To get started, you can read our <%= link_to 'documentation contributions', 'http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#contributing-to-the-rails-documentation' %> section.
99 100
        </p>
        <p>
F
Francis Go 已提交
101
          You may also find incomplete content or stuff that is not up to date.
102
          Please do add any missing documentation for master. Make sure to check
F
Francis Go 已提交
103
          <%= link_to 'Edge Guides', 'http://edgeguides.rubyonrails.org' %> first to verify
104 105
          if the issues are already fixed or not on the master branch.
          Check the <%= link_to 'Ruby on Rails Guides Guidelines', 'ruby_on_rails_guides_guidelines.html' %>
V
Vijay Dev 已提交
106
          for style and conventions.
107
        </p>
108 109 110 111
        <p>
          If for whatever reason you spot something to fix but cannot patch it yourself, please
          <%= link_to 'open an issue', 'https://github.com/rails/rails/issues' %>.
        </p>
112
        <p>And last but not least, any kind of discussion regarding Ruby on Rails
F
Francis Go 已提交
113
          documentation is very welcome on the <%= link_to 'rubyonrails-docs mailing list', 'https://groups.google.com/forum/#!forum/rubyonrails-docs' %>.
114
        </p>
115 116 117 118 119 120 121
      </div>
    </div>
  </div>

  <hr class="hide" />
  <div id="footer">
    <div class="wrapper">
122
      <%= render 'license' %>
123 124
    </div>
  </div>
125

126
  <script type="text/javascript" src="javascripts/jquery.min.js"></script>
127
  <script type="text/javascript" src="javascripts/responsive-tables.js"></script>
128
  <script type="text/javascript" src="javascripts/guides.js"></script>
129
  <script type="text/javascript" src="javascripts/syntaxhighlighter.js"></script>
130
  <script type="text/javascript">
131 132 133
    syntaxhighlighterConfig = {
      autoLinks: false,
    };
134
    $(guidesIndex.bind);
135
  </script>
136 137
</body>
</html>