Permalink
Browse files

Fixed navigation links for reports

  • Loading branch information...
Oliver Searle-Barnes
Oliver Searle-Barnes committed Mar 19, 2010
1 parent 19881cf commit 89a8a58ac6ad3a84cbe547d2d5e777d23bdd149e
Showing with 8 additions and 6 deletions.
  1. +1 −1 app/views/reports/edit.html.erb
  2. +7 −5 app/views/reports/show.html.erb
@@ -4,5 +4,5 @@
<p>
<%= link_to "Show", @report %> |
- <%= link_to "View All", reports_path %>
+ <%= link_to "View All", database_reports_path(@database) %>
</p>
@@ -13,6 +13,12 @@
<%=h @report.database_id %>
</p>
+<p>
+ <%= link_to "Edit", edit_report_path(@report) %> |
+ <%= link_to "Destroy", @report, :confirm => 'Are you sure?', :method => :delete %> |
+ <%= link_to "View All", database_reports_path(@report.database) %>
+</p>
+
<table>
<thead>
<% @column_names.each do |column_name| %>
@@ -33,8 +39,4 @@
</table>
-<p>
- <%= link_to "Edit", edit_report_path(@report) %> |
- <%= link_to "Destroy", @report, :confirm => 'Are you sure?', :method => :delete %> |
- <%= link_to "View All", database_reports_path(@report.database) %>
-</p>
+

0 comments on commit 89a8a58

Please sign in to comment.