From 2e42b6b07698e7afd1b0d7221b3b8ac767f70914 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 19 Mar 2013 15:04:18 +0000 Subject: [PATCH] Improve layout --- app/views/layers/index.html.haml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/app/views/layers/index.html.haml b/app/views/layers/index.html.haml index 29618df..1b773c5 100644 --- a/app/views/layers/index.html.haml +++ b/app/views/layers/index.html.haml @@ -1,19 +1,10 @@ -%h1 Listing layers +%h1 Layers -%table - %tr - %th Name - %th - %th - %th += link_to 'New Layer', new_layer_path, :class => 'button' +%table - @layers.each do |layer| %tr - %td= layer.name - %td= link_to 'Show', layer + %td= link_to layer.name, layer %td= link_to 'Edit', edit_layer_path(layer) - %td= link_to 'Destroy', layer, :method => :delete, :data => { :confirm => 'Are you sure?' } - -%br - -= link_to 'New Layer', new_layer_path + %td= link_to 'Delete', layer, :method => :delete, :data => { :confirm => 'Are you sure?' }