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

Create a “human date” output classes

XMLWordPrintable

    • 3
    • HQ 2025 Sprint I1.1 Moppies

      This issue is part of the new course overview page.

      The issue involves implementing an alternative to the current "userdate" but at a renderer level. The new method should return the HTML to print a date in a more human format to match the UX proposal (Teacher experience prototype).

      This implies:

      • If the date is past, it is renderer dimmed
      • If the date is near, it is renderer in "alert" color with an alert icon.
      • If the date is future, it is renderer normal in dark color.
      • If the date is today, yesterday or tomorrow, it will not show the month and the day but the relative name. For example "tomorrow at 5:00".

      For now, the method will be tested using a fixture file. It will be later in the parent epic.

      Technical shaping

      There a possible implementation in this proof of concept commit: https://github.com/ferranrecio/moodle/commit/e059bf745fe5ac6d5a2cc2cecf23671be98657eb

       

            amaia Amaia Anabitarte
            tusefomal Ferran Recio
            Laurent David Laurent David
            Ferran Recio Ferran Recio
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 weeks, 2 days, 2 hours, 54 minutes
                2w 2d 2h 54m

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