File: chapter.erb

package info (click to toggle)
libnet-ssh-ruby 1.1.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,472 kB
  • ctags: 2,465
  • sloc: ruby: 10,848; makefile: 17
file content (38 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (5)
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
30
31
32
33
34
35
36
37
38
 <div class="top"><div class="prevnext">
  <% if previous_chapter %>
    <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> |
  <% end %>
  <a href="index.html">Up</a>
  <% if next_chapter %>
    | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a>
  <% end %>
</div></div>

<h1><%= object.index %>. <%= object.title %></h1>

<% object.sections.each do |section|

   if section.title %>

     <h2>
       <a name="s<%= section.index %>"></a>
       <%= object.index %>.<%= section.index %>. <%= section.title %>
     </h2>

   <% end %>

   <div class="section">
     <%= section.content.to_html %>
   </div>

<% end %>

<div class="bottom"><div class="prevnext">
  <% if previous_chapter %>
    <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> |
  <% end %>
  <a href="index.html">Up</a>
  <% if next_chapter %>
    | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a>
  <% end %>
</div></div>