Better cmtool_user linking
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
- user = defined?(cmtool_user) ? cmtool_user : (defined?(current_user) ? current_user : nil)
|
||||
.fixed
|
||||
nav.top-bar data-topbar="" role="navigation"
|
||||
ul.title-area
|
||||
@@ -8,10 +9,10 @@
|
||||
a href="#"
|
||||
span Menu
|
||||
section.top-bar-section
|
||||
- if cmtool_user.present?
|
||||
- if user.present?
|
||||
ul.right
|
||||
li.has-dropdown
|
||||
a href="#" = cmtool_user.email
|
||||
a href="#" = user.email
|
||||
ul.dropdown
|
||||
li.log-out= link_to t('helpers.links.logout'), main_app.root_path
|
||||
ul.left
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#user-info
|
||||
#user-info-email= link_to cmtool_user.email, cmtool.user_path(current_user)
|
||||
#user-info-sign-in-out class: user_signed_in? ? 'signed-in' : 'signed-out'
|
||||
- if user_signed_in?
|
||||
= link_to t('devise.sessions.sign_out'), cmtool.destroy_user_session_path
|
||||
- else
|
||||
= link_to t('devise.sessions.sign_in'), new_user_session_path
|
||||
Reference in New Issue
Block a user