Skip to content

Instantly share code, notes, and snippets.

@TheNicholasNick
Created May 7, 2010 00:21
Show Gist options
  • Save TheNicholasNick/392858 to your computer and use it in GitHub Desktop.
Save TheNicholasNick/392858 to your computer and use it in GitHub Desktop.
.block
.secondary-navigation
%ul.wat-cf
%li.first.active=link_to pat(:list), url(:accounts, :index)
%li=link_to pat(:new), url(:accounts, :new)
.content
%h2.title
=pat(:all)
=mt(:account)
.inner
%table.table
%tr
%th.first=mat(:account, :id)
%th=mat(:account, :name)
%th=mat(:account, :surname)
%th=mat(:account, :email)
%th.last=" "
[email protected] do |account|
%tr
%td.first=account.id
%td=account.name
%td=account.surname
%td=account.email
%td.last
=button_to pat(:edit), url(:accounts, :edit, :id => account.id), :method => :get, :class => :button_to
="|"
- if settings.authentication_switch_user
=button_to pat(:switch_user), url(:sessions, :switch_user, :id => account.id), :method => :post, :class => :button_to
="|"
=button_to pat(:delete), url(:accounts, :destroy, :id => account.id), :method => :delete, :class => :button_to
.actions-bar.wat-cf
.actions=" "
-content_for :sidebar, partial("base/sidebar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment