Created
December 14, 2008 19:57
-
-
Save stefanpenner/35779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#_user.html.haml | |
%tr{:class => cycle('odd','even')} | |
%td.text-align-left | |
=link_to image_tag('user.png'),[:admin,user] | |
%b=link_to user.name,[:admin,user] | |
%td.text-align-left=user.email | |
%td= 'confirmed' if user.confirmed? | |
%td= link_to 'Edit', edit_admin_user_url(user) | |
%td= link_to image_tag('icon-remove.gif'), [:admin,user], :confirm => 'Are you sure?', :method => :delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#index.html.haml | |
= render :partial => '/admin/menu' | |
%h1 Listing Users | |
%table.plans | |
%tr | |
%th Name | |
%th Email | |
%th Confirmed | |
= render :partial => @users | |
%p= link_to 'New user', new_admin_user_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment