[html/status] Cleanup giant if statement