.new-header{ class: current_page?(root_path) ? nil : 'new-header-with-border' } .header-inner-content = link_to root_path do %img.header-logo{ src: image_url("header/logo-tps.svg") } = link_to "Connexion", new_user_session_path, class: "header-login-button"