Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-72898

Change the hidden activity links behaviour in the course index

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Course
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-72898-master
    • Hide

      Tested via behat tests.

      Manual test

      1. Create a course with enough activities and topics (at least 3 topics) to require scrolling to see the last topic (for example using: mdk run makecourse.sh)
      2. Go to the last activity of the course and add a  date restriction availability with a future date (for example 1 jan 2025)
      3. Enrol a student
      4. Login as the student and go to the course
      5. Open the course index
        1. Check the last activity has a lock icon and that the activity name is a link
      6. Click the last activity name in the course index
        1. Check the content scrolls to the element
      7. Login again as admin/teacher and edit the course settings to display only one topic per page
      8. Login as the student and go to the course
      9. Click the topic 1 link to show only that topic 
      10. Open the course index
        1. Check the last activity of the course has a lock that the activity name is a link
      11. Click the last activity name in the course index
        1. Check the page is reloading to show the last topic and scrolls to the last activity.
      Show
      Tested via behat tests. Manual test Create a course with enough activities and topics (at least 3 topics) to require scrolling to see the last topic (for example using: mdk run makecourse.sh) Go to the last activity of the course and add a  date restriction availability with a future date (for example 1 jan 2025) Enrol a student Login as the student and go to the course Open the course index Check the last activity has a lock icon and that the activity name is a link Click the last activity name in the course index Check the content scrolls to the element Login again as admin/teacher and edit the course settings to display only one topic per page Login as the student and go to the course Click the topic 1 link to show only that topic  Open the course index Check the last activity of the course has a lock that the activity name is a link Click the last activity name in the course index Check the page is reloading to show the last topic and scrolls to the last activity.
    • Moppies Kanban

    Description

      In the course index, if an activity is hidden it can be displayed in two ways:

      1. If the user has access to the activity (teachers mainly) it is a link to the activity
      2. If the user does not have access, it is a regular span element that is not clickable

      The 1st Case works is as expected. However, the new course index design requires the 2nd case to behave differently:

      1. If the user does not have access to the activity but the activity is displayed on the course page, the element should be a link to scroll to that specific element location. Especially if it has availability conditions.
      2. If the user does not have access to the activity but the activity is NOT displayed on the course page (in one section per page, for example), then it can remain as a non-clickable element.

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Carlos Escobedo Carlos Escobedo
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 15 minutes
                  3d 15m