diff options
Diffstat (limited to 'app/views/keys/index.html.haml')
-rw-r--r-- | app/views/keys/index.html.haml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/keys/index.html.haml b/app/views/keys/index.html.haml new file mode 100644 index 00000000000..416ae8f8f95 --- /dev/null +++ b/app/views/keys/index.html.haml @@ -0,0 +1,15 @@ +%div#new-key-holder + = link_to "Add new", new_key_path, :remote => true, :class => "lbutton vm" + +%table.round-borders#keys-table + %tr + %th title + %th key + %th Actions + - @keys.each do |key| + = render(:partial => 'show', :locals => {:key => key}) + +:javascript + $('.delete-key').live('ajax:success', function() { + $(this).closest('tr').fadeOut(); }); + |