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

Show user initials as a placeholder for the user profile picture

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: Themes
    • Labels:
    • Testing Instructions:
      Hide

      For this test you will need some test users, create 3 new users with names like

      Chris Elan
      Laura Kropp
      Nico Jansen

      For user Nico upload a profile picture

      Then enrol the users in a new course

      1. Login as admin
      2. Navigate to your test course
      3. Click on the participants tab
      4. Verify you see the user initials for users Chris and Laura, and you see the user picture of Nico

      1. Login as user Laura
      2. Verify you see the user initials for user Laura in the top navbar

      1. Navigate to your profile page
      2. Verify you see the user initials for user Laura in the page header

      1. Login as admin
      2. Navigate to Site Administration > Users > Browse list of users
      3. Click on the profile for user Laura Krop
      4. User the login as feature to login as Laura Krop
      5. Verify the top navbar shows the user initials for Laura Krop and for the admin user in the top navbar

      Show
      For this test you will need some test users, create 3 new users with names like Chris Elan Laura Kropp Nico Jansen For user Nico upload a profile picture Then enrol the users in a new course Login as admin Navigate to your test course Click on the participants tab Verify you see the user initials for users Chris and Laura, and you see the user picture of Nico Login as user Laura Verify you see the user initials for user Laura in the top navbar Navigate to your profile page Verify you see the user initials for user Laura in the page header Login as admin Navigate to Site Administration > Users > Browse list of users Click on the profile for user Laura Krop User the login as feature to login as Laura Krop Verify the top navbar shows the user initials for Laura Krop and for the admin user in the top navbar
    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-72305-master

      Description

      When the user pictured is rendered but the user has no profile picture show the user initials instead

        Attachments

        1. Figma design.png
          Figma design.png
          211 kB
        2. Figma design-1.png
          Figma design-1.png
          211 kB
        3. header.png
          header.png
          914 kB
        4. header-1.png
          header-1.png
          914 kB
        5. initials-only.png
          initials-only.png
          692 kB
        6. list-of-users.png
          list-of-users.png
          921 kB
        7. logged-in-as.png
          logged-in-as.png
          527 kB
        8. loginas.png
          loginas.png
          22 kB
        9. loginas-1.png
          loginas-1.png
          22 kB
        10. MDL-72305_Test passed.png
          MDL-72305_Test passed.png
          114 kB
        11. navbar.png
          navbar.png
          11 kB
        12. participants.png
          participants.png
          1002 kB
        13. Screenshot 2021-08-11 at 12.53.36.png
          Screenshot 2021-08-11 at 12.53.36.png
          166 kB

          Issue Links

            Activity

              People

              Assignee:
              basbrands Bas Brands
              Reporter:
              basbrands Bas Brands
              Peer reviewer:
              Mathew May Mathew May
              Integrator:
              Ilya Tregubov Ilya Tregubov
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Huong Nguyen, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Dec/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours, 25 minutes
                  1d 4h 25m