2011-10-08 23:36:38 +02:00
|
|
|
%div#new-key-holder
|
2011-11-22 14:14:23 +01:00
|
|
|
= link_to "Add new", new_key_path, :remote => true, :class => "grey-button"
|
|
|
|
%br
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
%table.round-borders#keys-table
|
|
|
|
%tr
|
|
|
|
%th title
|
|
|
|
%th key
|
|
|
|
%th Actions
|
|
|
|
- @keys.each do |key|
|
|
|
|
= render(:partial => 'show', :locals => {:key => key})
|
|
|
|
|
|
|
|
:javascript
|
2011-10-26 15:46:25 +02:00
|
|
|
$('.delete-key').live('ajax:success', function() {
|
|
|
|
$(this).closest('tr').fadeOut(); });
|
2011-10-08 23:36:38 +02:00
|
|
|
|