Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed navigation links for reports

  • Loading branch information...
commit 89a8a58ac6ad3a84cbe547d2d5e777d23bdd149e 1 parent 19881cf
Oliver Searle-Barnes authored
View
2  app/views/reports/edit.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>
View
12 app/views/reports/show.html.erb
@@ -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>
+
Please sign in to comment.
Something went wrong with that request. Please try again.