Fix broken project view layout

Layout was broken for projects, that are not 'github', 'gitlab' or 'bitbucket' due to misplaced `endif;`
Merge pull request #380 from elkangaroo/patch-1

Fix broken project view layout