aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/kindle/toc.html.erb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-12-24 17:26:18 -0800
committerXavier Noria <fxn@hashref.com>2011-12-24 17:33:18 -0800
commit69cc645c70bdbd4e0a43f176a66197d6b07d1dd7 (patch)
tree7d6f5d62a6230f600eca5cb1dd7226aac1047995 /railties/guides/source/kindle/toc.html.erb
parentbea3524e3f5a56e4dc87ae240a2c58301e73a128 (diff)
downloadrails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.tar.gz
rails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.tar.bz2
rails-69cc645c70bdbd4e0a43f176a66197d6b07d1dd7.zip
(draft) guides for the Kindle and Kindle apps [Mip Earson & Xavier Noria]
Diffstat (limited to 'railties/guides/source/kindle/toc.html.erb')
-rw-r--r--railties/guides/source/kindle/toc.html.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/railties/guides/source/kindle/toc.html.erb b/railties/guides/source/kindle/toc.html.erb
new file mode 100644
index 0000000000..e013797dee
--- /dev/null
+++ b/railties/guides/source/kindle/toc.html.erb
@@ -0,0 +1,24 @@
+<% content_for :page_title do %>
+Ruby on Rails Guides
+<% end %>
+
+<h1>Table of Contents</h1>
+<div id="toc">
+ <ul><li><a href="welcome.html">Welcome</a></li></ul>
+<% documents_by_section.each_with_index do |section, i| %>
+ <h3><%= "#{i + 1}." %> <%= section['name'] %></h3>
+ <ul>
+ <% section['documents'].each do |document| %>
+ <li>
+ <a href="<%= document['url'] %>"><%= document['name'] %></a>
+ <% if document['work_in_progress']%>(WIP)<% end %>
+ </li>
+ <% end %>
+ </ul>
+<% end %>
+<hr />
+<ul>
+ <li><a href="credits.html">Credits</a></li>
+ <li><a href="copyright.html">Copyright &amp; License</a></li>
+<ul>
+</div>