瀏覽代碼

Improve layout

master
Adrian Short 11 年之前
父節點
當前提交
2e42b6b076
共有 1 個文件被更改,包括 5 次插入14 次删除
  1. +5
    -14
      app/views/layers/index.html.haml

+ 5
- 14
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?' }

Loading…
取消
儲存