Fix broken project view layout

Layout was broken for projects, that are not 'github', 'gitlab' or 'bitbucket' due to misplaced `endif;`