layout.html.erb 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title><%= yield(:page_title) || 'Ruby on Rails Guides' %></title>
  7. <link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
  8. <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
  9. <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shCore.css" />
  10. <link rel="stylesheet" type="text/css" href="stylesheets/syntaxhighlighter/shThemeRailsGuides.css" />
  11. <link rel="stylesheet" type="text/css" href="stylesheets/fixes.css" />
  12. </head>
  13. <body class="guide">
  14. <% if @edge %>
  15. <div>
  16. <img src="images/edge_badge.png" alt="edge-badge" id="edge-badge" />
  17. </div>
  18. <% end %>
  19. <div id="topNav">
  20. <div class="wrapper">
  21. <strong>More at <a href="http://rubyonrails.org/">rubyonrails.org:</a> </strong>
  22. <a href="http://rubyonrails.org/">Overview</a> |
  23. <a href="http://rubyonrails.org/download">Download</a> |
  24. <a href="http://rubyonrails.org/deploy">Deploy</a> |
  25. <a href="https://github.com/rails/rails">Code</a> |
  26. <a href="http://rubyonrails.org/screencasts">Screencasts</a> |
  27. <a href="http://rubyonrails.org/documentation">Documentation</a> |
  28. <a href="http://rubyonrails.org/ecosystem">Ecosystem</a> |
  29. <a href="http://rubyonrails.org/community">Community</a> |
  30. <a href="http://weblog.rubyonrails.org/">Blog</a>
  31. </div>
  32. </div>
  33. <div id="header">
  34. <div class="wrapper clearfix">
  35. <h1><a href="index.html" title="Return to home page">Guides.rubyonrails.org</a></h1>
  36. <ul class="nav">
  37. <li><a href="index.html">Home</a></li>
  38. <li class="index"><a href="index.html" onclick="guideMenu(); return false;" id="guidesMenu">Guides Index</a>
  39. <div id="guides" class="clearfix" style="display: none;">
  40. <hr />
  41. <% ['L', 'R'].each do |position| %>
  42. <dl class="<%= position %>">
  43. <% docs_for_menu(position).each do |section| %>
  44. <dt><%= section['name'] %></dt>
  45. <% finished_documents(section['documents']).each do |document| %>
  46. <dd><a href="<%= document['url'] %>"><%= document['name'] %></a></dd>
  47. <% end %>
  48. <% end %>
  49. </dl>
  50. <% end %>
  51. </div>
  52. </li>
  53. <li><a href="contributing_to_ruby_on_rails.html">Contribute</a></li>
  54. <li><a href="credits.html">Credits</a></li>
  55. </ul>
  56. </div>
  57. </div>
  58. <hr class="hide" />
  59. <div id="feature">
  60. <div class="wrapper">
  61. <%= yield :header_section %>
  62. <%= yield :index_section %>
  63. </div>
  64. </div>
  65. <div id="container">
  66. <div class="wrapper">
  67. <div id="mainCol">
  68. <%= yield.html_safe %>
  69. <h3>Feedback</h3>
  70. <p>
  71. You're encouraged to help improve the quality of this guide.
  72. </p>
  73. <p>
  74. If you see any typos or factual errors you are confident to
  75. patch, please clone <%= link_to 'docrails', 'https://github.com/lifo/docrails' %>
  76. and push the change yourself. That branch of Rails has public write access.
  77. Commits are still reviewed, but that happens after you've submitted your
  78. contribution. <%= link_to 'docrails', 'https://github.com/lifo/docrails' %> is
  79. cross-merged with master periodically.
  80. </p>
  81. <p>
  82. You may also find incomplete content, or stuff that is not up to date.
  83. Please do add any missing documentation for master. Check the
  84. <%= link_to 'Ruby on Rails Guides Guidelines', 'ruby_on_rails_guides_guidelines.html' %>
  85. for style and conventions.
  86. </p>
  87. <p>
  88. If for whatever reason you spot something to fix but cannot patch it yourself, please
  89. <%= link_to 'open an issue', 'https://github.com/rails/rails/issues' %>.
  90. </p>
  91. <p>And last but not least, any kind of discussion regarding Ruby on Rails
  92. documentation is very welcome in the <%= link_to 'rubyonrails-docs mailing list', 'http://groups.google.com/group/rubyonrails-docs' %>.
  93. </p>
  94. </div>
  95. </div>
  96. </div>
  97. <hr class="hide" />
  98. <div id="footer">
  99. <div class="wrapper">
  100. <%= render 'license' %>
  101. </div>
  102. </div>
  103. <script type="text/javascript" src="javascripts/guides.js"></script>
  104. <script type="text/javascript" src="javascripts/syntaxhighlighter/shCore.js"></script>
  105. <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushRuby.js"></script>
  106. <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushXml.js"></script>
  107. <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushSql.js"></script>
  108. <script type="text/javascript" src="javascripts/syntaxhighlighter/shBrushPlain.js"></script>
  109. <script type="text/javascript">
  110. SyntaxHighlighter.all()
  111. </script>
  112. </body>
  113. </html>