Add class depending on revision status.