On the course details tab each lesson shows remaining attempts now. When a lesson is not configured to contain an assessment or if it does but no maxium attempts is selected then do not show the remaining attempts as currently it tells the user they have 0 attempts left when there is no limit.