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

block_myoverview: Improve pagination widget

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6, 3.7
    • Fix Version/s: None
    • Component/s: Dashboard (My home)
    • Testing Instructions:
      Hide

      Test instructions # Login as a user enrolled in 13 courses exactly

      1. Navigate to Dashboard and view the 'Course overview' section
      2. Click on the bottom left pagination dropdown beside the 'Show' label
      3. Two options should be visible, '12' and 'All'
      4. Check that only 12 courses are displayed on the page if '12' is selected from dropdown and that all 13 are displayed if 'All' selected
      5. Unenrol the user from a course (so they have 12 exactly)
      6. Navigate back to Dashboard and view the 'Course overview' section
      7. The 'Show' pagination dropdown should now be gone as there is only one possible pagination choice.

      Note: The pagination bar may still be there with the next page arrow selectable, this is being fixed under https://tracker.moodle.org/browse/MDL-64194

      Show
      Test instructions # Login as a user enrolled in 13 courses exactly Navigate to Dashboard and view the 'Course overview' section Click on the bottom left pagination dropdown beside the 'Show' label Two options should be visible, '12' and 'All' Check that only 12 courses are displayed on the page if '12' is selected from dropdown and that all 13 are displayed if 'All' selected Unenrol the user from a course (so they have 12 exactly) Navigate back to Dashboard and view the 'Course overview' section The 'Show' pagination dropdown should now be gone as there is only one possible pagination choice. Note: The pagination bar may still be there with the next page arrow selectable, this is being fixed under  https://tracker.moodle.org/browse/MDL-64194
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-64860-37_block_myoverview_improve_pagination

      Description

      block_myoverview has widgets to control the page size (12, 24 and 48) and widgets to switch to the next and previous page which is fine for users with a normal amount of courses.

      For users with a huge number of courses, this produces obstacles as
      1. there aren't real big page sizes and no "All" option in the page size widget and
      2. there aren't buttons to jump more than one page.
      Please imagine a user who has piled up 200 courses. With a page size of 48, he will have to change the page 5 times to get to the last course if he really need to access this course.

      Additionally, for users with really few courses (below 12), the page size widget is controlled anyway which is useless.

      Thus, I would propose to

      • Add 96 as page size option
      • Add "All" as page size option (well knowing that this will increase load time)
      • Show the page size widget only if the user really has more than 12 courses
      • Show only the page size options which apply to a user's course list (i.e. a user with 14 course will only see the 12 and 24 option)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m