Skip to content

Instantly share code, notes, and snippets.

@stefanpenner
Created December 14, 2008 19:57
Show Gist options
  • Save stefanpenner/35779 to your computer and use it in GitHub Desktop.
Save stefanpenner/35779 to your computer and use it in GitHub Desktop.
#_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
#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