Commit 93a4c2a

mo khan <mo@mokhan.ca>
2013-06-23 02:10:18
clean up neighbourhoods listing page
1 parent a92e9e3
Changed files (1)
app
views
neighbourhoods
app/views/neighbourhoods/index.html.erb
@@ -1,25 +1,21 @@
-<h1>Listing neighbourhoods</h1>
-
-<table>
-  <tr>
-    <th>Name</th>
-    <th>Status</th>
-    <th></th>
-    <th></th>
-    <th></th>
-  </tr>
-
-<% @neighbourhoods.each do |neighbourhood| %>
-  <tr>
-    <td><%= neighbourhood.name %></td>
-    <td><%= neighbourhood.status %></td>
-    <td><%= link_to 'Show', neighbourhood %></td>
-    <td><%= link_to 'Edit', edit_neighbourhood_path(neighbourhood) %></td>
-    <td><%= link_to 'Destroy', neighbourhood, method: :delete, data: { confirm: 'Are you sure?' } %></td>
-  </tr>
-<% end %>
-</table>
-
-<br />
-
-<%= link_to 'New Neighbourhood', new_neighbourhood_path %>
+<div class="row">
+  <div class="span12">
+    <h1>neighbourhoods</h1>
+    <table class="table">
+      <thead>
+        <tr>
+          <th>Name</th>
+          <th>Status</th>
+        </tr>
+      </thead>
+      <tbody>
+      <% @neighbourhoods.each do |neighbourhood| %>
+      <tr>
+        <td><%= neighbourhood.name %></td>
+        <td><%= neighbourhood.status %></td>
+      </tr>
+      <% end %>
+      </tbody>
+    </table>
+  </div>
+</div>