Longtime P.E.I. mayor resigns after a contentious pickleball court vote