Commit d544d55bd97bdd15d8a4bb7ecffa8518a41ac13e
1 parent
a22d7ca5
Exists in
master
and in
1 other branch
Add the "Add a New User" button to user show page. Reduces the number of clicks …
…when setting up accounts for multiple users
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/views/users/show.html.haml
1 | 1 | - content_for :title, @user.name |
2 | 2 | - content_for :action_bar do |
3 | + %span= link_to('Add a New User', new_user_path, :class => 'add') | |
3 | 4 | = link_to 'edit', edit_user_path(@user), :class => 'button' |
4 | 5 | = link_to 'destroy', user_path(@user), :method => :delete, :confirm => 'Seriously?', :class => 'button' |
5 | 6 | |
... | ... | @@ -12,4 +13,5 @@ |
12 | 13 | %td= @user.admin? ? 'Y' : 'N' |
13 | 14 | %tr |
14 | 15 | %th Created |
15 | - %td= @user.created_at.to_s(:micro) | |
16 | 16 | \ No newline at end of file |
17 | + %td= @user.created_at.to_s(:micro) | |
18 | + | ... | ... |