Skip to content

Commit

Permalink
this is it
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Oct 27, 2014
1 parent 8c41d41 commit 586f35e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/books/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
</p>
<ol class='book-toc'>
<% @book.chapters.each do |chapter| %>
<% next if chapter.sections.size == 0 %>
<li class='chapter'>
<h2><%= chapter.cs_number %>. <a href="/book/<%= @book.code %>/v<%= @book.edition %>/<%=u chapter.sections.first.slug %>"><%= chapter.title %></a></h2>
<ol>
Expand Down

0 comments on commit 586f35e

Please sign in to comment.