Changed top bar to point to /my controller
This commit is contained in:
parent
47a4178b50
commit
5f106ef1b3
1 changed files with 6 additions and 6 deletions
|
|
@ -32,14 +32,14 @@ nav.top-bar
|
|||
span.badge.secondary
|
||||
= @current_users_screenshots.count
|
||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||
- if user_signed_in?
|
||||
- if user_signed_in? and current_user.is_admin?
|
||||
li
|
||||
a href='#' Admin
|
||||
ul.menu.vertical
|
||||
li = link_to 'Moderate', moderate_path
|
||||
li = link_to 'Logs', logs_path
|
||||
li
|
||||
/ ul.menu.vertical
|
||||
/ li = link_to 'Moderate', moderate_path
|
||||
/ li = link_to 'Logs', logs_path
|
||||
li class=('active' if controller_name=='my')
|
||||
- if user_signed_in?
|
||||
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
||||
= link_to "My", my_profile_path
|
||||
- else
|
||||
= link_to 'Login', new_user_session_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue