Opened 6 months ago

Closed 4 months ago

Last modified 2 months ago

#29374 closed Cleanup/optimization (fixed)

Group the 'Available format strings' in the date template tag doc by category

Reported by: Pietro Bernardi Owned by: Brenton Cleeland
Component: Documentation Version:
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

'Available format strings' table is ordered alphabetically by format characters. It's IMHO inconvenient,
more times you search for format character of given element then for meaning of given format character.
So I reordered the table and added intermediate titles (see attached html file)
Pious soul that incorporates this snippet to doc is prayed to reformat intermediate titles (add appropriate classes and delete these ugly <b></b>).
The rest is copy/paste of original html page and needed no modifications.

Pietro

Change History (7)

comment:2 Changed 5 months ago by Tim Graham

Has patch: unset
Summary: built-in template tags - time - 'Available format strings' table for humansGroup the 'Available format strings' in the date template tag doc by category
Triage Stage: UnreviewedAccepted

The suggestion seems good -- PHP's table uses that approach.

You should submit your patch as a pull request.

comment:3 Changed 4 months ago by Brenton Cleeland

Owner: changed from nobody to Brenton Cleeland
Status: newassigned

comment:4 Changed 4 months ago by Brenton Cleeland

Has patch: set

PR open.

comment:5 Changed 4 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 3cf45af:

Fixed #29374 -- Ordered date filter's format strings by category.

comment:6 Changed 4 months ago by Tim Graham <timograham@…>

In 3ff605b:

[2.1.x] Fixed #29374 -- Ordered date filter's format strings by category.

Backport of 3cf45af3630890ad85112f9ea8af869c8daef17b from master

comment:7 Changed 2 months ago by Claude Paroz <claude@…>

In 93bd860:

Refs #29374 -- Moved misplaced line in date format docs table

comment:8 Changed 2 months ago by Claude Paroz <claude@…>

In d46bf119:

[2.1.x] Refs #29374 -- Moved misplaced line in date format docs table

Backport of 93bd860710d9914cc077ee362d5f3647489ce5a5 from master.

Note: See TracTickets for help on using tickets.
Back to Top