Skip to content

Instantly share code, notes, and snippets.

@JoeWoodward
Created November 12, 2011 17:35
Show Gist options
  • Save JoeWoodward/1360857 to your computer and use it in GitHub Desktop.
Save JoeWoodward/1360857 to your computer and use it in GitHub Desktop.
.block
.content
%h2 All Editor Accounts
.inner
.actions-bar.wat-cf
= paginate @users
%table.table
%thead
%tr
%th Email
%th &nbsp
%th Church(es)
%th &nbsp
%tbody
- @users.each do |user|
%tr{:class => cycle("odd", "even")}
%td= user.email
%td &nbsp
%td
- user.role.each do |role|
= role.name.join(,)
%td
= link_to 'show', admin_user_path(user)
|
= link_to 'edit', edit_admin_user_path(user)
|
= link_to 'destroy', admin_user_path(user), method: :delete, confirm: "Are you sure?"
.actions-bar.wat-cf
= paginate @users
= content_for :sidebar do
.block
%h4
- if current_user
Logged in as #{ current_user.email }
%h3 Navigation
%ul.navigation
%li= link_to "New Article", new_admin_article_path
%li= link_to "New Passage", new_admin_passage_path
%li= link_to "New Image", new_admin_image_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment