Browse Source

Page status sidebar - add support for actual published date date in tooltip

Fixes #10789
rohitsrma 1 year ago
parent
commit
451c21ea52

+ 1 - 0
CHANGELOG.txt

@@ -23,6 +23,7 @@ Changelog
  * Add `linked_fields` mechanism on chooser widgets to allow choices to be limited by fields on the calling page (Matt Westcott)
  * Add support for merging cells within `TableBlock` with the `mergedCells` option (Gareth Palmer)
  * When adding a panel within `InlinePanel`, focus will now shift to that content similar to `StreamField` (Faishal Manzar)
+ * Show the full first published at date within a tooltip on the Page status sidebar on the relative date (Rohit Sharma)
  * Fix: Ensure that StreamField's `FieldBlock`s correctly set the `required` and `aria-describedby` attributes (Storm Heg)
  * Fix: Avoid an error when the moderation panel (admin dashboard) contains both snippets and private pages (Matt Westcott)
  * Fix: When deleting collections, ensure the collection name is correctly shown in the success message (LB (Ben) Johnston)

+ 1 - 0
docs/releases/5.2.md

@@ -33,6 +33,7 @@ depth: 1
  * Add `linked_fields` mechanism on chooser widgets to allow choices to be limited by fields on the calling page (Matt Westcott)
  * Add support for merging cells within `TableBlock` with the [`mergedCells` option](table_block_options) (Gareth Palmer)
  * When adding a panel within `InlinePanel`, focus will now shift to that content similar to `StreamField` (Faishal Manzar)
+ * Show the full first published at date within a tooltip on the Page status sidebar on the relative date (Rohit Sharma)
 
 ### Bug fixes
 

+ 1 - 1
wagtail/admin/templates/wagtailadmin/shared/side_panels/status.html

@@ -16,7 +16,7 @@
         </div>
         {% if object.first_published_at %}
             <div class="w-help-text">
-                {% trans 'First published ' %}{% timesince_last_update object.first_published_at use_shorthand=True %}
+                {% trans 'First published' %} {% human_readable_date object.first_published_at position="bottom" %}
             </div>
         {% endif %}
     </div>