Skip to content

Commit cf9d213

Browse files
committed
Remove useless extra partial
git-svn-id: http://rubygems.rubyforge.org/svn/docs.rubygems.org@2427 3d4018f9-ac1a-0410-99e9-8a154d859a19
1 parent 9291e8b commit cf9d213

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

app/views/shared/_side_navigation.html.erb

+14-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@
2020
<br>
2121

2222
<h2>Authors</h2>
23-
<%= render :partial => 'shared/side_options',
24-
:locals => { :book => book, :chapter => chapter } %>
23+
24+
<% if author? then -%>
25+
<%= link_to 'Approve users', approve_path %><br>
26+
<%= link_to 'Create book', new_book_path %><br>
27+
<% if book then -%>
28+
<%= link_to 'Append chapter', new_chapter_path(book) %><br>
29+
<% end -%>
30+
<% if chapter then -%>
31+
<%= link_to 'Append page', new_page_path(chapter) %><br>
32+
<% end -%>
33+
<% else -%>
34+
<%= link_to 'Login', login_path %>
35+
<%= link_to 'Signup', signup_path %>
36+
<% end -%>

app/views/shared/_side_options.html.erb

-13
This file was deleted.

0 commit comments

Comments
 (0)