Skip to content

Commit

Permalink
moved new movie linkto layout and added logout link
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Mar 29, 2009
1 parent ab551a5 commit d243f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/views/layouts/application.haml
Expand Up @@ -15,3 +15,7 @@
= flash[:notice]
#content
= yield

- if admin?
= link_to 'New movie', new_movie_path
= link_to 'Logout', logout_path
3 changes: 0 additions & 3 deletions app/views/movies/index.haml
Expand Up @@ -5,6 +5,3 @@
%ul
- @movies[key].each do |movie|
= render :partial => 'movie_li', :locals => {:movie => movie}

- if admin?
= link_to 'New movie', new_movie_path

0 comments on commit d243f4e

Please sign in to comment.