Permalink
Browse files

Tweaked styling

  • Loading branch information...
1 parent 89a8a58 commit 1c2abb7008acdbc0cc709cb68fe0325b9604ed06 Oliver Searle-Barnes committed Mar 19, 2010
Showing with 6 additions and 18 deletions.
  1. +1 −1 app/views/reports/_form.html.erb
  2. +2 −6 app/views/reports/index.html.erb
  3. +3 −11 app/views/reports/show.html.erb
@@ -8,5 +8,5 @@
<%= f.label :query %><br />
<%= f.text_field :query %>
</p>
- <p><%= f.submit "Submit" %></p>
+ <p><%= f.submit "Save" %></p>
<% end %>
@@ -3,15 +3,11 @@
<table>
<tr>
<th>Name</th>
- <th>Query</th>
</tr>
<% for report in @reports %>
<tr>
- <td><%=h report.name %></td>
- <td><%=h report.query %></td>
- <td><%= link_to "Show", report %></td>
- <td><%= link_to "Edit", edit_report_path(report) %></td>
- <td><%= link_to "Destroy", report, :confirm => 'Are you sure?', :method => :delete %></td>
+ <td><%= link_to report.name, report %></td>
+ <td><%= link_to "Remove", report, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
@@ -1,22 +1,14 @@
-<% title "Report" %>
+<% title @report.name %>
<p>
- <strong>Name:</strong>
- <%=h @report.name %>
-</p>
-<p>
<strong>Query:</strong>
<%=h @report.query %>
</p>
-<p>
- <strong>Database:</strong>
- <%=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) %>
+ <%= link_to "Remove", @report, :confirm => 'Are you sure?', :method => :delete %> |
+ <%= link_to "#{@report.database.name} reports", database_reports_path(@report.database) %>
</p>
<table>

0 comments on commit 1c2abb7

Please sign in to comment.