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

Display course category in course related block

XMLWordPrintable

    • MOODLE_37_STABLE
    • MOODLE_38_STABLE
    • MDL-64438-master-4
    • Hide

      Test in Boost.

      Test 1 (Test 'Display categories' setting for each course block).

      1. Login as Admin.
      2. Go to Site administration > Plugins > Blocks..
        • Go to 'Course overview' block settings
          • make sure 'Display categories' setting is present.
          • enable 'Display categories'.
        • Go to 'Recently accessed courses' block settings.
          • make sure 'Display categories' setting is present.
          • enable 'Display categories'.
        • Go to 'Starred courses' block settings.
          • make sure 'Display categories' setting is present.
          • enable 'Display categories'.
      1. Make sure the "Display extended course names" setting (Administration > Appearance > Courses) is disabled.
      2. Create several Course categories.
      3. Create several  Courses and assign different Course categories to them.
      4. Enrol a Student in each Course.
      5. Login as Student enrolled in the Courses.
      6. Go to Dashboard, add the following blocks if they doesn't exist:
        • 'Starred courses'
        • 'Course overview'
        • 'Recently accessed courses'
      7. Go to (access) some of the created Courses.
      8. Star (favorite) some of the courses.
      9. Go to Dashboard.
        • the accessed Courses should be displayed in the "Recently accessed courses" block.
        • make sure the correct course category name is displayed in every course block in "Recently accessed courses", "Course overview" and "Starred courses" block. 
      10. Log in as Admin.
      11. Go to Administration > Plugins > Blocks.
      12. Toggle (Disable/Enable) the 'Display categories' setting for each course block individually.
      13. Log in as Student.
      14. Go to Dashboard.
        • make sure the course category name is NOT displayed in the course block with the disabled "Display categories" setting. 

       

      Test 1.1 (Using the courses, course categories and students created in Test 1)

      1. Login as Admin.
      2. Go to Site administration > Plugins > Blocks..
        • Go to 'Course overview' block settings.
          • enable 'Display categories'.
        • Go to 'Recently accessed courses' block settings.
          • enable 'Display categories'.
        • Go to 'Starred courses' block settings.
          • enable 'Display categories'.
      3. Edit one of the course categories used by one of the Courses.
        • Add a long text for the category name, make sure the name is too large to be fitted in the "Recently accessed courses", "Course overview" and "Starred courses" block  (ex. "Lorem ipsum dolor sit amet, consectetur adipiscing elit").
        • Save the changes.
      4. Login as a Student.
      5. Go to the Dashboard.
      6. Access one of the Courses that uses the edited (long name) category.
      7. Go back to Dashboard.
        • make sure you can see the course in the "Recently accessed courses" block.
      8. Star that Course.
        • make sure you can see the course in the "Starred courses" block.
      9. make sure in each block ("Recently accessed courses", "Course overview" and "Starred courses") the category name is truncated meaning only the part of the name that fits in the block is displayed followed by "..."

       

      Test 2 (Test the output format when "Display extended course names" setting is enabled).

      1. Log in as Admin.
      2. Enable  the "Display extended course names" setting (Administration > Appearance > Courses).
      3. Log in as Student.
      4. Repeat the steps 7-8.
        • make sure the correct course category name and the course short name are displayed next to each other divided by " | " in every course block in "Recently accessed courses", "Course overview" and "Starred courses" block.
      5. Go to Administration > Plugins > Blocks.
      6. Toggle (Disable/Enable) the 'Display categories' setting for each course block individually.
      7. Log in as Student.
      8. Go to Dashboard.
        • make sure only the course short name is displayed (without a divider) in the course blocks with disabled "Display categories" setting.
      Show
      Test in Boost. Test 1 (Test 'Display categories' setting for each course block). Login as Admin. Go to Site administration > Plugins > Blocks.. Go to 'Course overview' block settings make sure 'Display categories' setting is present. enable 'Display categories'. Go to 'Recently accessed courses' block settings. make sure 'Display categories' setting is present. enable 'Display categories'. Go to 'Starred courses' block settings. make sure 'Display categories' setting is present. enable 'Display categories'. Make sure the "Display extended course names" setting (Administration > Appearance > Courses) is disabled. Create several Course categories. Create several  Courses and assign different Course categories to them. Enrol a Student in each Course. Login as Student enrolled in the Courses. Go to Dashboard, add the following blocks if they doesn't exist: 'Starred courses' 'Course overview' 'Recently accessed courses' Go to (access) some of the created Courses. Star (favorite) some of the courses. Go to Dashboard. the accessed Courses should be displayed in the "Recently accessed courses" block. make sure the correct course category name is displayed in every course block in "Recently accessed courses", "Course overview" and "Starred courses" block.   Log in as Admin. Go to Administration > Plugins > Blocks. Toggle (Disable/Enable) the 'Display categories' setting for each course block individually. Log in as Student. Go to Dashboard. make sure the course category name is NOT displayed in the course block with the disabled "Display categories" setting.     Test 1.1 (Using the courses, course categories and students created in Test 1) Login as Admin. Go to Site administration > Plugins > Blocks.. Go to 'Course overview' block settings. enable 'Display categories'. Go to 'Recently accessed courses' block settings. enable 'Display categories'. Go to 'Starred courses' block settings. enable 'Display categories'. Edit one of the course categories used by one of the Courses. Add a long text for the category name, make sure the name is too large to be fitted in the "Recently accessed courses", "Course overview" and "Starred courses" block  (ex. "Lorem ipsum dolor sit amet, consectetur adipiscing elit"). Save the changes. Login as a Student. Go to the Dashboard. Access one of the Courses that uses the edited (long name) category. Go back to Dashboard. make sure you can see the course in the "Recently accessed courses" block. Star that Course. make sure you can see the course in the "Starred courses" block. make sure in each block ("Recently accessed courses", "Course overview" and "Starred courses") the category name is truncated meaning only the part of the name that fits in the block is displayed followed by "..."   Test 2 (Test the output format when "Display extended course names" setting is enabled). Log in as Admin. Enable  the "Display extended course names" setting (Administration > Appearance > Courses). Log in as Student. Repeat the steps 7-8. make sure the correct course category name and the course short name are displayed next to each other divided by " | " in every course block in "Recently accessed courses", "Course overview" and "Starred courses" block. Go to Administration > Plugins > Blocks. Toggle (Disable/Enable) the 'Display categories' setting for each course block individually. Log in as Student. Go to Dashboard. make sure only   the course short name is displayed (without a divider)   in the course blocks with disabled "Display categories" setting.

       MDL-63794 added the feature of displaying the course category in the 'Course overview' block. It would be nice if the course category is displayed in the 'Recently accessed courses'  to have consistency between the blocks.

      Edit : Initially this issue was exclusively for 'Recently accessed courses'. This has now been expanded to include myoverview and starredcourses block

        1. Screenshot_3.png
          Screenshot_3.png
          243 kB
        2. Screenshot_2.png
          Screenshot_2.png
          171 kB
        3. Screenshot_1.png
          Screenshot_1.png
          321 kB
        4. dashboard_block_notrucate.png
          dashboard_block_notrucate.png
          214 kB

            Geshoski Mihail Geshoski
            Geshoski Mihail Geshoski
            Peter Dias Peter Dias
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 31 minutes
                1d 2h 31m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.