<% 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 %>