Skip to content

Commit

Permalink
Remove unshared partial
Browse files Browse the repository at this point in the history
git-svn-id: http://rubygems.rubyforge.org/svn/docs.rubygems.org@2430 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
drbrain committed Feb 12, 2010
1 parent cc2a778 commit 1e91975
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
15 changes: 13 additions & 2 deletions app/views/read/chapter.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
<h1><%= @chapter.chapter_descriptor %>. <%= @chapter.title %> </h1>
<% if author? then -%>
<%= render :partial => 'shared/chapter_options',
:locals => { :chapter => @chapter } %>
<a href="#" onclick="document.getElementById('admin_chapter_<%= @chapter.id %>').style.display='block'; return false;">Chapter options &rarr;</a>

<ul id="admin_chapter_<%= @chapter.id %>" class="admin">
<li><%= link_to 'New page', new_page_path(@chapter) %></li>
<li><%= link_to 'Edit chapter title', edit_chapter_path(@chapter) %></li>
<li><%= link_to 'Create sub chapter', new_sub_chapter_path(@chapter.book, @chapter) %></li>
<li><%= link_to 'Delete this chapter', delete_chapter_path(@chapter), :confirm => 'Are you sure?' %></li>

<li>Move <%= list_link 'up', @chapter %>
<%= list_link 'down', @chapter %>
<%= list_link 'top', @chapter %>
<%= list_link 'bottom', @chapter %></li>
</ul>
<% end -%>
<%= render :partial => 'page', :collection => @chapter.pages %>
Expand Down
11 changes: 0 additions & 11 deletions app/views/shared/_chapter_options.html.erb

This file was deleted.

0 comments on commit 1e91975

Please sign in to comment.