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

Boost: Use the navigation node's icon in the flat_navigation template

XMLWordPrintable

    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-61298-master
    • Hide
      1. Login with a user that is enrolled into at least one course with sections
      2. Go to this course
      3. Open the nav drawer (if not already opened)
      4. See that all menu items in the nav drawer have a suitable icon in front of the item title
      Show
      Login with a user that is enrolled into at least one course with sections Go to this course Open the nav drawer (if not already opened) See that all menu items in the nav drawer have a suitable icon in front of the item title

      Currently, only special nodes have icons in the Boost navigation (nav drawer).
      Moreover those icons are hard coded within the template:
      https://github.com/moodle/moodle/blob/d509f80c48f4ef49a03ab8396eec869bc7563882/theme/boost/templates/flat_navigation.mustache#L70

      We don't know why these icons are hard coded, especially because navigation nodes can deliver their own icons:
      https://github.com/moodle/moodle/blob/d509f80c48f4ef49a03ab8396eec869bc7563882/lib/navigationlib.php#L104

      So we think this could be improved in the way that the template renders the delivered icon.

      Best, Kathrin

        1. Step4_MDL-61298.PNG
          Step4_MDL-61298.PNG
          39 kB
        2. Screen Shot 2018-03-19 at 09.32.31.png
          Screen Shot 2018-03-19 at 09.32.31.png
          169 kB
        3. proposal.png
          proposal.png
          242 kB
        4. homeicon.png
          homeicon.png
          106 kB
        5. current.png
          current.png
          234 kB
        6. coursemanagement.png
          coursemanagement.png
          111 kB
        7. 61298-proposed.png
          61298-proposed.png
          89 kB

            kosswa Kathrin Osswald
            kosswa Kathrin Osswald
            Bas Brands Bas Brands
            David Monllaó David Monllaó
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            1 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 - 30 minutes
                30m

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