This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/views/users/index.html.haml

16 lines
694 B
Plaintext
Raw Normal View History

%h1 Peoples
2008-10-01 02:19:35 -04:00
%style{ :type => 'text/css' }
:sass
ol
:font-size 18px
%ol
2008-10-01 02:19:35 -04:00
- @users.each do |user|
%li{ :id => "user_#{user.id}" }
%a{ :href => url(:edit_user, :id => user.user_name), :title => 'Edit settings' }
%img{ :src => '/images/mail-attachment.png' }
%a{ :href => '#', :onclick => "if(confirm('Are you sure?')){new Ajax.Request('#{url(:user, :id => user.user_name)}', { method: 'delete', onSuccess: function(){ new Effect.DropOut($('user_#{user.id}')); }, onFailure: function() { new Effect.Highlight($('user_#{user.id}')); } });} return false;", :title => 'Destroy this user' }
2008-10-01 02:19:35 -04:00
%img{ :src => '/images/user-trash.png' }
= user.user_name