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
|
span.badge.secondary
|
||||||
= @current_users_screenshots.count
|
= @current_users_screenshots.count
|
||||||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||||
- if user_signed_in?
|
- if user_signed_in? and current_user.is_admin?
|
||||||
li
|
li
|
||||||
a href='#' Admin
|
a href='#' Admin
|
||||||
ul.menu.vertical
|
/ ul.menu.vertical
|
||||||
li = link_to 'Moderate', moderate_path
|
/ li = link_to 'Moderate', moderate_path
|
||||||
li = link_to 'Logs', logs_path
|
/ li = link_to 'Logs', logs_path
|
||||||
li
|
li class=('active' if controller_name=='my')
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= link_to "#{current_user.email} (Logout)", destroy_user_session_path, :method => :delete
|
= link_to "My", my_profile_path
|
||||||
- else
|
- else
|
||||||
= link_to 'Login', new_user_session_path
|
= link_to 'Login', new_user_session_path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue