Created
November 12, 2011 17:35
-
-
Save JoeWoodward/1360857 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
.block | |
.content | |
%h2 All Editor Accounts | |
.inner | |
.actions-bar.wat-cf | |
= paginate @users | |
%table.table | |
%thead | |
%tr | |
%th Email | |
%th   | |
%th Church(es) | |
%th   | |
%tbody | |
- @users.each do |user| | |
%tr{:class => cycle("odd", "even")} | |
%td= user.email | |
%td   | |
%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