stable

Clone or download

Read-only

Display absolute date as a fallback for tlp-relative-date

<tlp-relative-date> is not supported on legacy browsers. This means that users using those browsers won't see any date displayed which may be problematic. While we cannot start to support those legacy browsers and should encourage users to upgrade, at the very least we have a way to reduce the friction by providing a fallback value for the component: * If the browser cannot interpret (interpret!) the component, the fallback value will be displayed. * Else the fallback value will be replaced by rich content, based on user preferences. Fix request #19288: Display absolute date as a fallback for tlp-relative-date Change-Id: I9d8f8fa91ede6741c25dd6a3f1fb91e67097bcdd

Modified Files

Name
M plugins/document/scripts/document/components/Folder/FolderContentRow.vue +3 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookDocumentMetadata.vue +6 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookMetadataDate.vue +3 −1 Go to diff View file
M plugins/forumml/templates/threads.mustache +1 −1 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +8 −2 Go to diff View file
M plugins/tracker/templates/form-element/reference/cross_reference.mustache +1 −1 Go to diff View file
M src/common/date/DateHelper.class.php +3 −1 Go to diff View file
M src/scripts/site-admin/dates-display.test.ts +1 −1 Go to diff View file
M src/scripts/tuleap/custom-elements/relative-date/relative-date-element.test.ts +1 −1 Go to diff View file
M src/www/tlp-doc/resources/visual-assets/relative-dates/example.html +6 −6 Go to diff View file
M tests/unit/common/date/helper/DateHelperTest.php +61 −32 Go to diff View file