Hopf algebra gauge theory on a ribbon graph