stable

Clone or download

Read-only

Use tlp-relative-date in QuickLook

Change your user preference "relative_dates_display" to "absolute_first-relative_shown". (You have to do it manually in the db) In document, open the quick look of a document item. Look at the following dates: - creation date - last update date - custom metadata All are using the following format: YYYY-MM-DD X seconds ago Part of story #14828: display dates with both absolute and relative dates Change-Id: I58a28644f805126aed2a7c1b792c2143d7062b19

Modified Files

Name
M plugins/document/include/Tree/DocumentTreePresenter.php +5 −0 Go to diff View file
M plugins/document/scripts/document/components/App.vue +4 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookDocumentMetadata.test.js +1 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookDocumentMetadata.vue +28 −24 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookMetadataDate.test.js +2 −6 Go to diff View file
M plugins/document/scripts/document/components/Folder/QuickLook/QuickLookMetadataDate.vue +19 −11 Go to diff View file
M plugins/document/scripts/document/index.js +4 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations-global.js +4 −0 Go to diff View file
M plugins/document/templates/document-tree.mustache +1 −0 Go to diff View file
A plugins/document/tsconfig.json +9 −0 Go to diff View file
M plugins/document/webpack.common.js +5 −0 Go to diff View file
M src/common/date/DateHelper.class.php +3 −1 Go to diff View file
M src/themes/tlp/src/js/custom-elements/relative-date/relative-date-formatter.test.ts +60 −0 Go to diff View file
M src/themes/tlp/src/js/custom-elements/relative-date/relative-date-formatter.ts +13 −7 Go to diff View file
A src/themes/tlp/src/js/custom-elements/relative-date/relative-date-helper.test.ts +41 −0 Go to diff View file
A src/themes/tlp/src/js/custom-elements/relative-date/relative-date-helper.ts +47 −0 Go to diff View file