app/views/layouts/caboose/_top_nav.html.erb in caboose-cms-0.1.93 vs app/views/layouts/caboose/_top_nav.html.erb in caboose-cms-0.1.96
- old
+ new
@@ -1,7 +1,7 @@
<div id='top_nav'>
- <% if (@user.nil? || @user.id == Caboose::User::LOGGED_OUT_USER_ID) %>
+ <% if (@user.nil? || @user == Caboose::User.logged_out_user) %>
<%= link_to "Login", "/login?return_url=#{request.fullpath}", :id => 'caboose_login' %>
<% else %>
<%= link_to "Control Panel", '#', :id => 'caboose_conductor' %>
<% end %>
</div>