Skip to content

Commit 602fc90

Browse files
committed
Remove unshared partial
git-svn-id: http://rubygems.rubyforge.org/svn/docs.rubygems.org@2428 3d4018f9-ac1a-0410-99e9-8a154d859a19
1 parent cf9d213 commit 602fc90

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

app/views/read/_page.html.erb

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33

44
<h2 class="pageheader"><%= link_to_page "#{@chapter.position}.#{page.position} #{page.title}", page %></h2>
55

6-
<%= render :partial => 'shared/page_options', :locals => { :page => page } if author? %>
6+
<% if author? then -%>
7+
<a href="#" onclick="document.getElementById('admin_page_<%= page.id %>').style.display='inline'; return false;">options &rarr;</a>
8+
9+
<span id="admin_page_<%= page.id %>" class="admin">
10+
&nbsp;&nbsp;&nbsp;&nbsp;
11+
<%= link_to 'log', history_page_path(page) %> |
12+
<%= link_to 'edit', edit_page_path(page) %> |
13+
<%= link_to 'delete', delete_page_path(page), :confirm => 'Are you sure?' %> |
14+
Move <%= list_link 'up', page %> <%= list_link 'down', page %>
15+
<%= list_link 'top', page %> <%= list_link 'bottom', page %>
16+
</span>
17+
<% end -%>
718

819
<div class="body">
920
<%= page.body_html %>

app/views/shared/_page_options.html.erb

-10
This file was deleted.

config/deploy.rb

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
run "sudo chmod g+w #{shared_path}/log/#{rails_env}.log"
2222
end
2323

24+
task "mark deployment with newrelic"
2425
remote_task :mark_deployment do
2526
run "cd #{deploy_to}/scm/; ruby vendor/plugins/newrelic_rpm/bin/newrelic_cmd deployments -a docs.rubygems.org -e production -r `svnversion #{deploy_to}/scm`"
2627
end

0 commit comments

Comments
 (0)