-
Notifications
You must be signed in to change notification settings - Fork 21.6k
/
index.html.erb
29 lines (26 loc) · 1.13 KB
/
index.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
<% content_for :page_title, "Ruby on Rails Guides" %>
<% content_for :description, "Ruby on Rails Guides" %>
<% content_for :header_section do %>
<%= render 'welcome' %>
<% end %>
<% content_for :index_section do %>
<nav id="subCol" aria-label="Chapter" class="guide-index">
<dl>
<dt></dt>
<% unless @edge -%>
<dd class="interstitial info kindle"><p>Rails Guides are also available for <%= link_to 'Kindle', @epub %>.</p></dd>
<% end -%>
<dd class="interstitial work-in-progress">Guides marked with this icon are currently being worked on and will not be available in the Guides Index menu. While still useful, they may contain incomplete information and even errors. You can help by reviewing them and posting your comments and corrections.</dd>
</dl>
</nav>
<% end %>
<% documents_by_section.each do |section| %>
<h2><%= section['name'] %></h2>
<dl class="guide-index-list">
<% section['documents'].each do |document| %>
<%= guide(document['name'], document['url'], work_in_progress: document['work_in_progress']) do %>
<p><%= document['description'] %></p>
<% end %>
<% end %>
</dl>
<% end %>