cleaned up header haml function and moved if statement outside markup to prevent empty div
cleaned up header haml function and moved if statement outside markup to prevent empty div

prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,RayRutjes/frontend,circleci/frontend